Matlab script declaring Simulink model variables

조회 수: 2 (최근 30일)
Nafalai
Nafalai 2021년 10월 14일
Hi!
I was given the following protected Simulink model:
t works manually (I click on "Run" on the Simulink GUI and it gives me the three outputs). I am writing a script using the Matlab SIMSET tool to define the necessary variables and to call this model in order to run it:
Constant=43;
Constant1=43;
Constant2=43;
Constant7=43;
Constant10=43;
Constant11=43;
t_stop = 100;
T_s = t_stop/1000;
options = simset('solver', 'ode5', 'fixedstep', T_s);
sim('test_lau.slx',t_stop,options)
I know that the interfaces "EC" and "UL" each take for input a vector, but even if I define two vectors in my script, how do I assign them to "EC" and "UL"?
Thank you in advance for your help!

답변 (1개)

Harikrishnan Balachandran Nair
Harikrishnan Balachandran Nair 2021년 10월 21일
Hi,
You can refer to the following documentation to learn about importing a signal data for simulation

카테고리

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

제품


릴리스

R2014b

Community Treasure Hunt

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

Start Hunting!

Translated by