Add a "Function Call Output" in a "Embedded MATLAB Function block" from command window
조회 수: 4 (최근 30일)
이전 댓글 표시
Hello,
I would like to know how to add a "Function Call Output" in a "Embedded MATLAB Function block" from the command Window.
Thanks
댓글 수: 0
채택된 답변
Kaustubha Govind
2012년 3월 26일
Do you mean you want to produce a function-call signal to use with a Function-Call Subsystem? If yes, I don't think this is possible with an (Embedded) MATLAB Function block at all. Have you been able to do this manually (let alone from the command prompt)?
EDIT
Turns out, it is possible to generate function-calls from a MATLAB Function block. After playing with the Stateflow API, I was able to come up with this:
S=sfroot;
B = S.find('Name','MATLAB Function','-isa','Stateflow.EMChart');
fc = Stateflow.FunctionCall(B); % add a function call output to block
Caveat: This is not documented, so there is no guarantee that it will work in future releases.
댓글 수: 0
추가 답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Schedule Model Components에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!