Skip to Main Content Skip to Search
Product Documentation

sfprint - Print graphical view of charts

Syntax

sfprint
sfprint(objects)
sfprint(objects,format)
sfprint(objects,format,output_option)
sfprint(objects,format,output_option,print_entire_chart)

Description

sfprint prints the current chart to a default printer.

sfprint(objects) prints all charts in objects to a default printer.

sfprint(objects,format) prints all charts in objects in the specified format to a default printer.

sfprint(objects,format,output_option) prints all charts in objects in the specified format to the file or printer specified in output_option.

sfprint(objects,format,output_option,print_entire_chart) prints all charts in objects in the specified format to the file or printer specified in output_option. Prints a complete or current view of charts as specified in print_entire_chart.

If the format argument is absent, sfprint generates a PostScript file to the default printer. If the output_option argument is absent, the name of the chart in the current folder becomes the output file name.

Input Arguments

objects

Objects containing charts to print:

'literal_string'

Path name of a chart, model, subsystem, or block

gcb

Command that specifies the current block of the model

gcs

Command that specifies the current system of the model

format

Format of the image to print:

'bitmap'

Save the chart image to the clipboard as a bitmap (for Windows® operating systems only)

'default'

Print image to your default printer

'eps'

Generate an encapsulated PostScript file

'epsc'

Generate a color encapsulated PostScript file

'jpg'

Generate a JPEG file

'meta'

Save the chart image to the clipboard as a metafile (for Windows operating systems only)

'png'

Generate a PNG file

'ps'

Generate a PostScript file

'psc'

Generate a color PostScript file

'tif'

Generate a TIFF file

output_option

Name of the file or printer:

'output_file_name'

Send output to a file called output_file_name

'clipboard'

Copy output to the clipboard

'file'

Send output to a default file with the name path_to_chart.file_extension, such as sf_pool_Init.jpg

'promptForFile'

Prompt for file name interactively

'printer'

Send output to the default printer (use only with 'default', 'ps', or 'eps' formats)

print_entire_chart

View of charts to print:

1

Print complete charts (default)

0

Print current view of charts

Examples

Print all charts in the current system as a PostScript file to your default printer:

sfprint(gcs)
 

Print the complete chart whose path is 'sf_pool/Pool' in JPEG format:

sfprint('sf_pool/Pool','jpg')
 

Print the complete chart whose path is 'sf_car/shift_logic' in TIFF format using the name myFile:

sfprint('sf_car/shift_logic','tif','myFile')
 

Print the current view of all charts in the current system in PNG format using default file names:

sfprint(gcs,'png','file',0)

See Also

gcb | gcs | sfhelp | sfnew | sfsave | stateflow

How To

  


Free Stateflow Interactive Kit

Learn how engineers use Stateflow to model state machines in their Simulink models.


Get free kit

Trials Available

Try the latest version of Stateflow.


Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS