% stategen_init.m: generates matrices A,B,C,D for continuous % state space model. clear; n=input('Enter number of states (n): '); m=input('Enter number of inputs (m): '); r=input('Enter number of outputs (r): '); disp('Enter coefficients for differential equation.'); disp('The negatives of these will become the bottom '); disp('row of the companion matrix A:'); A = zeros(n); for i=0:n-1 if i