ex13_7 - [num1,den] = ss2tf(A,B,C,D,1); [num2,den] =...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
% Example 13.7 % % Numerical solution of the discrete time state equations % A = [0 -1 0;1 0 0;0 1 0]; B = [1 0 1;0 1 0;0 0 1]; C = [0 1 0;1 0 1]; D = [0 0 0;0 1 0]; x0 = [1 1 0]'; % define the I.C. % compute the free response to the I.C. % n = 0:1:10; v = zeros(length(n),3); [y,x] = dlsim(A,B,C,D,v,x0); x pause % % compute the transfer function
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: [num1,den] = ss2tf(A,B,C,D,1); [num2,den] = ss2tf(A,B,C,D,2); [num3,den] = ss2tf(A,B,C,D,3); disp('The denominator is: ') den disp('First Column of Transfer Function is: ') num1 disp('Second Column of Transfer Function is: ') num2 disp('Third Column of Transfer Function is: ') num3...
View Full Document

This note was uploaded on 03/24/2010 for the course CENG 4331 taught by Professor Maryrandolph-gips during the Fall '09 term at UH Clear Lake.

Ask a homework question - tutors are online