How to plot Step response of MIMO system

조회 수: 2 (최근 30일)
Hiralben Mistry
Hiralben Mistry 2018년 11월 18일
댓글: Geetha Madhuri 2019년 4월 3일
I am working on MIMO system with following A,B,C,D matrix.
A=[3 4 -7;5 4 0;-5 -7 10];
B=[1 0;0 0;1 1];
C=[1 1 0;1 0 1];
D=zeros(2,2);
sys_OL=ss(A,B,C,D);
[y_OL,t]=step(sys_OL);
While finding the step response of system, I got the dimension of y_OL as 319 x 2 x 2 double;
How can I plot the output?

채택된 답변

Stephan
Stephan 2018년 11월 18일
편집: Stephan 2018년 11월 18일
Hi,
if you use:
[y_OL,t]=step(sys_OL);
you get a matrix as result. To directly plot the step response use:
step(sys_OL)
Best regards
Stephan
  댓글 수: 3
Stephan
Stephan 2018년 11월 18일
You can accept useful answers and/or vote for them.
Geetha Madhuri
Geetha Madhuri 2019년 4월 3일
I am working on a MIMO system,which has 2 inputs and 2 outputs.I applied the command you have suggested step(sys_OL).
The responce has 4 graphs.How can I apply two step signals of different magnitudes as inputs ?. How to relate inputs and outputs?

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Propagation and Channel Models에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by