Matlab tips for using less paper.

From MurrayWiki
Revision as of 18:25, 9 November 2006 by Mjdunlop (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This problem set (problem 2, in particular) seems to require a lot of plots, so here are some tips for dealing with Matlab images and reducing the size of your problem set:

  • If the problem asks for the gain margin and phase margin, but doesn't require a bode plot you don't need to print out the margin plot. You can have the margin command output the numerical values of GM and PM by calling it with output arguments.

[Gm,Pm,Wcg,Wcp] = margin(sys); Make sure you include this code with your problem set.

  • Export your images and put multiple images one each page. In the Figure window go to File > Export Setup... This will open a new window and you should click the Export button. From here you can save the file in a convenient location in a good file format. If you want to put multiple figures in a Microsoft Word document the extension *.png is a good choice. *.eps and *.pdf are other good options. Now that you have the images saved you can put multiple images on a page. For example, in Microsoft Word if you go to Insert > Picture > From File... you can include your figure in a Word document. From here the images can be resized and multiple images can be put on each page. You can even copy your Matlab code in below the image.

--Mary Dunlop 10:25, 9 November 2006 (PST)