| Stateflow® | ![]() |
sfprint
sfprint( objects, format, outputOption, printEntireChart )
objects | Any of these object identifiers:
|
| format | Optional literal string that specifies the print destination:
|
| outputOption | Optional string that specifies an output file or printer:
|
| printEntireChart | Optional Boolean argument:
|
sfprint prints the current Stateflow chart to a default printer.
sfprint( objects, format, outputOption, printEntireChart ) prints all Stateflow charts identified in objects in the specified format to the file or printer specified in outputOption. Prints a complete or current view of charts as specified in printEntireChart. If the format argument is absent, the format defaults to 'ps' and output is sent to the default printer. If the outputOption argument is absent, the name of the Stateflow chart in the current directory is used as the output file name.
Print the complete chart whose handle is id to a TIFF file called myFilename.
sfprint(id, 'tif', 'myFilename')
Print all Stateflow charts in the current system as a PostScript file to the default printer.
sfprint(gcs)
Print the current Stateflow block to a JPEG file whose name is specified by the user interactively.
sfprint(gcb, 'jpg', 'promptForFile')
Print the current view of all Stateflow charts in the current system in PNG format using default file names.
sfprint(gcs, 'png', 'file', 0)
Assume that you loaded a Simulink model named myModel that has two charts named Chart1 and Chart2. Further, both Chart1 and Chart2 are represented by the Stateflow chart objects ch1 and ch2, respectively.
This command... | Prints the graphical view of... |
|---|---|
sfprint('myModel') | Both Chart1 and Chart2 to the default printer |
sfprint('myModel','ps') | Both Chart1 and Chart2 to a PostScript file |
sfprint(ch1.Id,'psc') | Chart1 to a color PostScript file |
sfprint([ch1.Id, ch2.Id]) | Both Chart1 and Chart2 to the default printer |
sfhelp, sfnew, sfsave, stateflow
![]() | sfopen | sfroot | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |