Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Executing a Simulink function from a Matlab function in Stateflow

5 ビュー (過去 30 日間)
Jim Clay
Jim Clay 2012 年 11 月 23 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
I have a working Stateflow Chart that executes a number of Matlab functions. I would like to convert some of those functions to Simulink functions, but they usually have some "if" control structures that are more easily done in Matlab than Simulink. The stuff inside the "if"s, though, would translate to Simulink very nicely.
Is it possible to execute a Simulink function from a Matlab function in a Stateflow Chart? If so, how do you do it?
Thanks for your time.

回答 (1 件)

Azzi Abdelmalek
Azzi Abdelmalek 2012 年 11 月 23 日
You can use Simulink Function (Graphic function available in your chart)
  1 件のコメント
Kaustubha Govind
Kaustubha Govind 2012 年 11 月 26 日
編集済み: Kaustubha Govind 2012 年 11 月 26 日
Also, see this blog post on constructing an if-else semantic in Simulink.

この質問は閉じられています。

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by