pzplot in symbolic toolbox

14 visualizaciones (últimos 30 días)
Amir Iranizadeh
Amir Iranizadeh el 21 de Mzo. de 2020
Respondida: Star Strider el 21 de Mzo. de 2020
Hi, I'm using following command to achieve tf of Y_out.
for l=1:4
[symNum,symDen] = numden(Y_out(1,l)); %Get num and den of Symbolic TF
TFnum = sym2poly(symNum); %Convert Symbolic num to polynomial
TFden = sym2poly(symDen); %Convert Symbolic den to polynomial
sys =tf(TFnum,TFden);
pzplot(sys)
end
as you can see Y_out has 1 row and 4 column.
how can I PZPLOT the sys(1),...,sys(4) all in a same plot or different plots?
thx

Respuestas (1)

Star Strider
Star Strider el 21 de Mzo. de 2020
as you can see Y_out has 1 row and 4 column.
We cannot see any of that because they are not provided.
This could work, although I cannot even test it or simulate it because I do not know what ‘Y_out’ is:
for l=1:4
[symNum,symDen] = numden(Y_out(1,l)); %Get num and den of Symbolic TF
TFnum = sym2poly(symNum); %Convert Symbolic num to polynomial
TFden = sym2poly(symDen); %Convert Symbolic den to polynomial
sys =tf(TFnum,TFden);
figure
pzplot(sys)
end

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by