close all;clear all;clc;m1=1;m2=3;k1=10;k2=2;b=0.5;A=[0 1 0 0;-(k1+k2)/m1 -b/m1 k2/m1 b/m1;0 0 0 1; k2/m2 b/m2 -k2/m2 -b/m2];B=[0;0;0;1/m2];C=[1 0 0 0;0 0 1 0];D=[0;0];sys_ss=ss(A,B,C,D);step(sys_ss);[num,den]=ss2tf(A,B,C,D);
MATLAB: How can i solve part 2 … should i convert the statespace to tf
MATLAB
Best Answer