Printing graphs in MATLAB - ECON520

lounge. By using the command: print -dpdf <filename> You create a pdf with the last object (i.e. graph or plot) with the filename of your choosing. This file goes directly into the shell file transfer window (after the program has run, you have to hit refresh to see the created pdf). This file is rewritten every time you run the program.

Example: The following is some example code.

hist(a)

print -dpdf hist

ECON520: Printing graphs in MATLAB (last edited 2006-11-02 21:04:59 by eller239233)