s = -14.5 A = [-3, 5, -7, 0; 0.5, -1.5, 0.5, -7.5; -5, 0, -3, 0; -0.5, -5, 0, -7];B = [1, 0; 0, -1; -2, 0; 0, 1];C = [1, 0, 0, 0; 0, -1, 0, 0];D = [-1, 0; 2, 0];sys = ss(A,B,C,D);M = (s*eye(4,4) - A);P = [ M, -B; C, D]k = rank(P)d = det(P)uM = null(P,'r')sys2 = tf( sys );[y,t] = lsim(sys2 ,uM , t)size(y)
Error that I am receiving:-
When simulating the response to a specific input signal, the input
data U must be a matrix with as many rows as samples in the time
vector T, and as many columns as input channels.
Unrecognized function or variable 't'.
Error in antiresonance_part_two (line 40)
[y,t] = lsim(sys2 ,uM , t)
Best Answer