| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Stateflow |
| Contents | Index |
| Learn more about Stateflow |
sfprint
sfprint(objects)
sfprint(objects,format)
sfprint(objects,format,output_option)
sfprint(objects,format,output_option,print_entire_chart)
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.
objects |
Objects containing charts to print:
| ||||||||||||||||||||
format |
Format of the image to print:
| ||||||||||||||||||||
output_option |
Name of the file or printer:
| ||||||||||||||||||||
print_entire_chart |
View of charts to print:
|
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)
gcb | gcs | sfhelp | sfnew | sfsave | stateflow
![]() | sfopen | sfroot | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |