('tf' requires one of the following) "tf commend is not working" HELP PLS!
45 次查看(过去 30 天)
显示 更早的评论

this simple command doesn't work even though I've entered all commands correctly
thx for answers...
0 个评论
采纳的回答
M
2019-11-13
Your code is right, but you do not have the required toolbox. The function tf is part of the 4 toolbox listed in the error message. You have to install at least one of them to use tf.
更多回答(2 个)
Supriya Joshi
2020-7-27
%poles and zeros num=[1 4 3]; den=[3 19 27 35]; z=tf(num,den) %z1=roots(num) %p1=roots(den) [z1,p1,k]=tf2zp(num,den) pzmap(z)
0 个评论
jean carlos
2025-3-26,4:12
por que me sale este error me podra ayudarme por favor
%% LGR
Gzl=tf(Numz,Denz,-1);
rlocus(Gzl); %LGR
axis([-1.5 1.5 -1.25 1.25]);
title('LGR');
>> jean
Unrecognized function or variable 'Numz'.
Error in jean (line 2)
Gzl=tf(Numz,Denz,-1);
Unrecognized function or variable 'Numz'
2 个评论
Stephen23
2025-3-26,6:20
"Unrecognized function or variable 'Numz'"
Solution: define Numz.
Question: what do you expect Numz to be?
Sam Chak
2025-3-26,6:44
@jean carlos, You need to specify the numerator and denominator coefficients ordered in descending powers of z.
Numz = [2, 0];
Denz = [4, 0, 3, -1];
Gzl = tf(Numz, Denz, -1)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Power and Energy Systems 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!