matlab - How do I compute the determinant of a transfer function matrix without having to use "syms"? -
i intend compute determinant of transfer matrix , subject nyquist analysis making nyquist plot problem determinant command doesn't recognizes transfer matrix. code shown below
clc clear all; close all; g11 = tf(12.8,[16.7 1],'inputdelay',1) g12 = tf(-18.9,[21 1],'inputdelay',3) g21 = tf(6.6,[10.9 1],'inputdelay',7) g22 = tf(-19.4,[14.4 1],'inputdelay',3) g=[g11 g12 ; g21 g22] [re,im,w] = nyquist(g) f=2.55; s=tf('s'); %syms s; ggc11 = g11*(0.96*(1+3.25*f*s)/(3.25*f^2*s)) ggc12 = g12*(0.534*(1+3.31*f*s)/(3.31*f^2*s)) ggc21 = g21*(0.96*(1+3.25*f*s)/(3.25*f^2*s)) ggc22 = g22*(0.534*(1+3.31*f*s)/(3.31*f^2*s)) ggc=[ggc11 ggc12 ; ggc21 ggc22]; l=eye(2)+ ggc; w= -1 + det(l) nyquist(w) the error appears follows
undefined function 'det' input arguments of type 'ss'.
error in blt_code (line 30) w= -1 + det(l)
i avoid 'syms' command not able nyquist plot then. there alternative way of computing nyquist plot of same ?
Comments
Post a Comment