How to print the current model clipboard from matlab command and only those portion seen in the screen?

1 view (last 30 days)
The following code: hSys=get_param(gcs,'handle'); set(hSys,'PaperPositionMode','auto'); print hSys -dpng -r300 -s;
Prints the currently opened model but a complete view is avialable. I would like to print only those portion as observed in the screen but not all the perspective of the currently opened simulink model.
How to do this? Please remember: Only those portion as observed currently in the screen and NOT the complete overview. Can anyone help me on this. Thanks in advance.

Answers (0)

Categories

Find more on Programmatic Model Editing in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!