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.

 Réponse acceptée

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:

Plus de réponses (0)

Catégories

En savoir plus sur Decision Logic dans Centre d'aide et File Exchange

Produits

Version

R2006a

Community Treasure Hunt

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

Start Hunting!

Translated by