mor.sigma
Main interface for Sigma plot.
mor.sigma(sys,W)
mor.sigma(sys,color,W)
mor.sigma(sys,color,W,'max')
H = mor.sigma(sys,W)
mor.sigma(sys,W)
plots the Sigma diagram of sys
over the frequencies defined by the vector W
. The input sys
can either be
sys = ss(A,B,C,D)
(or sys = dss(A,B,C,D,E)
) sys = {A,B,C,D}
(or sys = {A,B,C,D,E}
)sys = {w_i,H_i}
sys = @(s) myFun
mor.sigma(sys,color,W)
plots sys
with color color
.H = mor.sigma(sys,W)
provides the frequency response ny outputs, nu inputs, N values vector.
sys | Dynamical system or input-output data. More specifically sys can either be
|
color | Color in a string tag or a RGB vector. |
W | Vector of frequencies, in rad/s, over which the system's sigma responses are evaluated (positive real vector). |
'max' | When this tag is added, the maximal singular value is computed only. |
H | Returns the sigma response of the dynamic system model sys (model, data, handle function) at frequencies W (complex ny x nu x N vector). |
% Sigma from state-space
sys = ss(zpk([],[-0.1+3*1i,-0.1-3*1i,-0.05+10*1i,-0.05-10*1i,-0.01+20*1i,-0.01-20*1i],1));
W = logspace(-1,3,300);
figure
mor.sigma(sys,W)
% Sigma from matrices
load build
A = G.a;
B = G.b;
C = G.c;
D = G.d;
W = logspace(-1,3,300);
figure
mor.sigma({A,B,C,D},W)
% Sigma from freqresp function
load build
sys = G;
W = logspace(-1,3,300);
H = freqresp(sys,W);
figure
mor.sigma({H},W)
% Sigma from handle function
sys = @(s) [1 0;6+s 1]/(s^2+.1*s+1);
W = logspace(-1,3,300);
figure
mor.sigma(sys,W)