pzplot in symbolic toolbox

14 ビュー (過去 30 日間)
Amir Iranizadeh
Amir Iranizadeh 2020 年 3 月 21 日
回答済み: Star Strider 2020 年 3 月 21 日
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

回答 (1 件)

Star Strider
Star Strider 2020 年 3 月 21 日
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

カテゴリ

Help Center および File ExchangeLinear Algebra についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by