Problem using zpkdata function.

Problem arises when i want to do the calculation of the transfer function gain using this code inside the For loop, for each h2 analyzed.
sp ='the dc gain is %f and the gain of the tf is %f';
for i = 1:length(z)
zc = z(i);
%graph2
num2 = 5 / zc * [1 zc]; % [] valor de los coeficientes del numerador de H(S)
h2 = tf(num2, dem)
dc = dcgain(h2);
[z,p,k] = zpkdata(h2);
k
fprintf(sp,dc,k)
end

1 件のコメント

Shanmukha Voggu
Shanmukha Voggu 2021 年 10 月 27 日
Please provide the information about the dem variable in your code?

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeDynamic System Models についてさらに検索

製品

リリース

R2020b

質問済み:

2021 年 10 月 24 日

コメント済み:

2021 年 10 月 27 日

Community Treasure Hunt

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

Start Hunting!

Translated by