MATLAB: How to plot Step response of MIMO system

mimoplotstep

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?

Best Answer

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