How Can I set stateflow editor to FitToView using set_param() command which we normally do pressing spacebar???

13 views (last 30 days)
Hello,
I was creating script in which I need to include the command to set all subsystem and stateflow in fit in view format (FitToView). I was able to do it using set_param() command but it is only working for subsyem not working for stateflow. So please help me in getting this command which will work for stateflow.
for example: set_param(gcs, 'zoomfactor', 'fit to view')
Thanks in advacnce.
Regards, Shameer..

Answers (1)

Vishal Rane
Vishal Rane on 8 Nov 2012
For every chart there is a Stateflow.Editor object with a ZoomFactor property. Set it to 1 for 100% zoom and so on. Hope that helps.
  1 Comment
Shameer Parmar
Shameer Parmar on 8 Nov 2012
Thanks Vishal, But I am not able to make it automated using script, It works when we do it manually by going inside stateflow editor and changing the zoonfactor to required number or FitToView. Do you know any command which I can put in script and make it automated? Appreciate your help.

Sign in to comment.

Categories

Find more on Schedule Model Components in Help Center and File Exchange

Tags

Products

Community Treasure Hunt

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

Start Hunting!