MATLAB Object-Oriented Programming

(Joyce) #1

Using the SeaLevelAdjuster Class


The class uses the cape image that is included with the MATLAB product. To obtain the
image data, use the load command:


load cape X map


After loading the data, create a SeaLevelSlider object for the image:


slaObj = SeaLevelSlider(X,map);


Move the slider to change the color mapping and visualize a rise in sea level.


50 100 150 200 250 300 350

50

100

150

200

250

300

350

Class Methods for Graphics Callbacks
Free download pdf