how to call m-file from simulink?

조회 수: 2 (최근 30일)
shivakumar
shivakumar 2013년 4월 22일
편집: John Kelly 2014년 5월 27일
I have some conversions to do with the inputs, i want to do this in m-file. so, how can i call m-file from simulink ? i.e. i want m-file also to execute when i run the model in simulink.

채택된 답변

Tobias
Tobias 2013년 4월 22일
편집: John Kelly 2014년 5월 27일
There are different ways you can do this. The most simple, but limited is probably Fcn. However, for your purpose, it sounds like you would be better off with either using Interpreted Matlab Function or even better: Matlab Function, which enables you to make your own function and use it in simulink.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Simulink Functions에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by