Problem using zpkdata function.

조회 수: 9 (최근 30일)
valentina mejia gallon
valentina mejia gallon 2021년 10월 24일
댓글: Shanmukha Voggu 2021년 10월 27일
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