How do I modify the default junction size for the Stateflow Editor?

I would like my Stateflow charts to have a default junction size that is different from the current defaults.

 Accepted Answer

The ability to change the default junction size for the Stateflow Editor is not available in Stateflow since there are no chart- or machine-level properties controlling these. As a workaround, write functions to modify properties for objects created in MATLAB code as follows:
sfnew
save_system(gcs,'un1')
rt = sfroot;
m = rt.find('-isa','Stateflow.Machine','Name','un1');
chart = m.findDeep('Chart')
%get a handle to the junction
j = Stateflow.Junction(chart)
jp = j.Position
jp.Radius = 25 %Modify the Radius
For information on the default chart level properties that can be modified, refer to the solution linked below:

More Answers (0)

Categories

Find more on Decision Logic in Help Center and File Exchange

Products

Release

R2006a

Community Treasure Hunt

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

Start Hunting!