How to do change model on simulation by "lsim" ?

조회 수: 1 (최근 30일)
Naoya Inoue
Naoya Inoue 2018년 7월 5일
I want to change model on simulation by "lsim". Because I want simulate the condition that during operation Big Network model (power system .etc)having node 30, Nodes increase 31 or 32. Using next code, I achieve my target.It is image, so next code is not work.If sys.C is Identity matrix, y_before is stateof system.Using x0 of "lsim", changing system simulate complete?(may be). Please tell me more good idea. Best Regards.
y_before = lsim(sys_orinal,u(1:end/2),time(1:end/2),[0,0]);
y_after = lsim(sys_change,u(end/2+1:end),time(end/2+1:end),[y_before(end,:),0]);
y = [ y_before; y_after];
%{
where
sys_original : Original sysmtem
sys_change : Original system + Add Node
time ; simulation time
u : input signal (input only original node)
%}

답변 (0개)

카테고리

Help CenterFile Exchange에서 Frequency-Domain Analysis에 대해 자세히 알아보기

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by