Using MATLAB Graphics     Search    Help Desk 

Passing String Arguments to print

You can use the function form of print to pass string arguments to the command. This form encloses all arguments in parenthesis and places quotes around all arguments that are not variable names.

Batch Printing

You can use a for loop to create different graphs and print them in a series of files whose names are constructed from the loop counter (or any other variable for that matter):

Specifying the Figure to Print

You can print a figure that is not the current figure by specifying the figure's handle:

If the figure uses noninteger handles, you can pass a numeric variable as the first argument:

The command,

prints the Simulink model having the name vdp.



[ Previous | Help Desk | Next ]