%% Impulse Response Plot of Second-Order State-Space Model
%% Create model and plot impulse response

a = [-0.5572 -0.7814;0.7814  0];
b = [1 -1;0 2];
c = [1.9691  6.4493];
sys = ss(a,b,c,0);
impulse(sys)

%
%% Compute impulse response data

[y,t] = impulse(sys);

%
%% Examine array size

size(y)

%
%% Access first channel

ch1 = y(:,:,1);
size(ch1)

% Copyright 2015 The MathWorks, Inc.