12.07.2015 Views

Basics of MATLAB and Beyond

Basics of MATLAB and Beyond

Basics of MATLAB and Beyond

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

axis ijUsually images like this do not need the axes:axis <strong>of</strong>fA three-dimensional example now:clfspherecolormap(fitrange(gray,.5,1))view(5,5)axis equalmatlab has drawn a biggish sphere because the near perpendicular viewpointallows the axes to fit within the default plotting area. If we changethe viewpoint:view(45,45)the sphere is drawn smaller because the axes are more oblique to theplane. Now go back to the first viewpoint, switch on the vis3d axisbehaviour, <strong>and</strong> then return to the second viewpoint:view(5,5)axis vis3dview(45,45)The sphere is kept a constant size (cf. plot before last, above), whichforces the axes to extend beyond the plotting area (<strong>and</strong>, in this case,beyond the Figure area too). You should turn on axis vis3d wheneveryou are viewing three-dimensional objects from different angles. In suchsituations the axes are usually superfluous anyway, so why not get rid<strong>of</strong> them?axis <strong>of</strong>fc○ 2000 by CRC Press LLC

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

Saved successfully!

Ooh no, something went wrong!