New Stateflow MATLAB chart: can it be created from a "regular" chart?
1 回表示 (過去 30 日間)
古いコメントを表示
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...
0 件のコメント
採用された回答
Siddharth
2012 年 10 月 17 日
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:
その他の回答 (1 件)
Siddharth
2012 年 10 月 16 日
編集済み: Siddharth
2012 年 10 月 18 日
Hi Wilfred,
There is no direct way to convert the action language from C to MATLAB in a state diagram currently as far as I know.
This seems like something that many existing users who want to use MATLAB as the action language in Stateflow can possibly benefit from. Please create an enhancement request for this through technical support.
Thanks, Siddharth
参考
カテゴリ
Help Center および File Exchange で Simulink Functions についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!