필터 지우기
필터 지우기

Connecting simulink with m file

조회 수: 1 (최근 30일)
rend alrays
rend alrays 2015년 11월 12일
댓글: Walter Roberson 2015년 11월 13일
Hi .. I want to connect my simulink model with the m-file to put the m file in another program.. how would I do that?? any suggestion??
Regards

답변 (1개)

Walter Roberson
Walter Roberson 2015년 11월 13일
You call sim() from MATLAB.
It is not clear what assistance you would like?
Also, when you say you want to put it into another program, are you referring to compiling the code?
  댓글 수: 2
rend alrays
rend alrays 2015년 11월 13일
I have a program which have a matlab componant ,I will use this simulink in this componant which I have to write some thing in the m-file to connect between these two programs .. Is that clear?? so I have to connect the simulink model with the m-file to connect all with my program
Walter Roberson
Walter Roberson 2015년 11월 13일
call open_system() to load the model. call set_param() if you need to change parameters. Call sim() to run the model.

댓글을 달려면 로그인하십시오.

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by