how can i change the matrix block in Simulink?

조회 수: 1 (최근 30일)
Min DongJu
Min DongJu 2013년 2월 13일
i want to make a time-varying system by using Simulink.
And i wanna change the matrix block every loop in time-varying system.
i already know the time-varying matrix at every loop.
ex) M(t)x''+kx=F(t)
the time inverval is 1sec. and stop time is 5 sec.
t=0, M=[0 0;0 0];
t=1, M=[1 0;0 0];
t=2, M=[0 2;0 0];
t=3, M=[0 0;5 0];
t=4, M=[0 0;0 6];
t=5, M=[0 2;0 6];;
i just want to change the M matrix in the Gain block every loop.
or if there is another method to simulate the time-varying system, plz let me know.

답변 (1개)

Ryan G
Ryan G 2013년 2월 14일
You can build the system as you would any other ode. You can use a lookup table to specify M over this time span.

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by