CAMPGSYM.M (cont)
w = [0:0.1:100]; %... Create frequency input vector
[g,p]=bode(A,B,C,D,1,w); %... Bode Plot
subplot(211),plot (w,g(:,2)),grid,.. % f4(s)4/F(s)
title('Bode Plot using CAMP-G symbolic A,B,C,D matrices')
[num,den]=ss2tf(A,B,C,D,iu); % generate vector of transfer functions
subplot(2,1,2),step(num(2,:),den,time),grid,... %f4(s)/F(s)
title('Position Step Response using CAMP-G A,B,C,D matrices')