필터 지우기
필터 지우기

how to run a Simulink model in a Matlab M file in this way?

조회 수: 1 (최근 30일)
E U
E U 2015년 7월 2일
댓글: E U 2015년 7월 2일
I have simulink model "Mod_Sim" in simulink with an input port "inp" and an output port "out". I want to send inputs to this model, simulate it and then take the corresponding outputs at every sampling time "Ts". I want to simulate this model in this way for "N" time steps (in terms of Ts).
More specifically, I want the following implementation:
At a given time step "k", I will have input u(k) (from some other source). Then, I want to apply this input to Mod_Sim and get the corresponding output y(k) from the model. I want to repeat this for N time steps.
How can I do such an implementation?
I will be happy for helps.

답변 (1개)

Azzi Abdelmalek
Azzi Abdelmalek 2015년 7월 2일
  댓글 수: 1
E U
E U 2015년 7월 2일
Dear Azzi, could you please write a few lines on how this will be done? Your answer was very short and I did not figure out how to implement this with set_param.

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

카테고리

Help CenterFile Exchange에서 Programmatic Model Editing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by