print -s<modelname> -d<xxx> -r<resolution> <filename.xxx>For example, to export simmodel.mdl to eps with a resolution of 300 dpi, type
print -ssimmodel -deps -r300 simmodel.epsThe file simmodel.eps will be created in the directory where the command is entered.
For more information about image formats and print options, type
help printEnjoy!
6 comments:
Great tip! Thanks for posting it!
I couldn't find this in the Matlab/Simulink help.
Thanks, that's great
I'd been struggling with how to do it for ages.
Matlab documentation says you can us File/SaveAs but it's lying.
I have one question;
How can I print a submodel to eps?
I have tried many ways of referring to the submodel but I can't figure it out.
Please help me :) the other help was already very helpful!
Thanks for this!
Alex
I don't know how to print a submodel and won't have time to investigate it but as a workaround, consider copying the submodel to a new model, save it, and print it.
Thanks, this post has helped me at least 3 times already:)
Hi,
To print a subsystem, just add "/yoursubsystemname" to your model name, such as:
print -ssimmodel/yoursubsystemname -deps -r300 simmodel.eps
Hope it helps. Your post helped me a lot, thanks !
Greetings from Brazil.
Post a Comment