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