Problem using zpkdata function.

9 次查看(过去 30 天)
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 个)

类别

Help CenterFile Exchange 中查找有关 Dynamic System Models 的更多信息

产品


版本

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by