12.07.2015 Views

Basics of MATLAB and Beyond

Basics of MATLAB and Beyond

Basics of MATLAB and Beyond

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Some new data now:t = linspace(0,1);x = humps(t);y = humps(t.^2)/2;plot(x,y)60402000 50 100The Axes limits have been set to the next round number in the series <strong>of</strong>tick marks. Tochange the scale so that the data fill the whole plot:axis tightTo zoom in on the loop:403020101220 40 60 80axis([10 25 5 12])To zoom back out again: 12axis auto108660402010 15 20 2500 50 100Now let us look at some image data:clfload clownimage(X)colormap(map)50100150200100 200 300The y-axis here increases from top to bottom: the ij axis mode is thedefault for images. To get the y-axis increasing from bottom to top:200axis xy15010050To go back again:100 200 30012 Or you can use the zoom function, which initiates a mouse-based zoomer.c○ 2000 by CRC Press LLC

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!