MATLAB: New Stateflow MATLAB chart: can it be created from a “regular” chart

action languagematlab chartsstateflow

I have a question regarding the MATLAB charts that have now been introduced in R2012B. Is it possible to convert a regular (old) stateflow chart into a MATLAB chart that accepts MATLAB expressions in action language? I have old charts in which I used expressions such as busy_time=ml('max(min((300+100*randn(1)),800),30)') which I think can be simplified if the ml('') is removed…
I couldn't find this in the manual…

Best Answer

Currently, the only option is to copy the contents of the C chart block to the MATLAB chart block and redefine the variables. Some things to keep in mind as you manually change the langauge in the charts: