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.

ut it will be high quality when printed.screen, but are lower quality when printed.Bitmaps do appear on theBitmap Import On PCs choose matlab’s -dmeta option when usingthe print comm<strong>and</strong> to produce a file with the extension .emf. Thenfrom CorelDraw select “File”→“Import ... ” to get a file finder dialogbox. Select the .emf file you created with matlab <strong>and</strong> choose the“Windows Metafile (WMF)” option in the “Files <strong>of</strong> Type” box. Clickthe “Import” button <strong>and</strong> CorelDraw will return you to your documentwhere you must drag out a rectangle to define the size <strong>of</strong> the importedgraphic. Once you drag the rectangle, the matlab graphic will appearin bitmap form.Vector Graphic Import Another option with CorelDraw is to importan HPGL file printed using the -dhpgl option from matlab. This is aformat designed for Hewlett-Packard pen plotters, <strong>and</strong> has the advantagethat the imported image can be edited from within CorelDraw. Followthe steps as for bitmaps above, but use the “HPGL Plotter File (PLT)”option in the “Files <strong>of</strong> Type” box. You have the option here <strong>of</strong> changingthe pen colours used by CorelDraw’s emulation <strong>of</strong> an HP pen plotter.This format works well for graphics that could easily be plotted on apen plotter. Line drawings work well but images do not. Surface plotsare initially imported with no hidden line removal, but if you change thefill colour to white with CorelDraw, hidden lines will be removed. To dothis fill colour change, ungroup the graphic, select the surface, click theright mouse button, <strong>and</strong> choose “Properties”, then choose white as thefill colour. If you have problems importing with this format, try openingthe .hgl file in a text editor <strong>and</strong> deleting the last line.36 Irregular GridsIn this section we discuss how to deal with data that is defined overan irregular grid. In Section 7.6 on page 32 we saw how do h<strong>and</strong>lenonrectangular grids, but these were still regular in the sense that thex <strong>and</strong> y data grids could be defined using rectangular matrices (thoughthe resulting geometrical domains did not have to be rectangles).Some irregular three-dimensional data is supplied with matlab inthe data file seamount.mat. Load the data <strong>and</strong> plot the points:>> load seamount>> whosName Size ...caption 1x229 ...c○ 2000 by CRC Press LLC

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

Saved successfully!

Ooh no, something went wrong!