('tf' requires one of the following) "tf commend is not working" HELP PLS!
23 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Mesut Yilmaz
el 13 de Nov. de 2019
Comentada: Sam Chak
el 26 de Mzo. de 2025

this simple command doesn't work even though I've entered all commands correctly
thx for answers...
0 comentarios
Respuesta aceptada
M
el 13 de Nov. de 2019
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.
Más respuestas (2)
Supriya Joshi
el 27 de Jul. de 2020
%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 comentarios
jean carlos
el 26 de Mzo. de 2025
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 comentarios
Stephen23
el 26 de Mzo. de 2025
"Unrecognized function or variable 'Numz'"
Solution: define Numz.
Question: what do you expect Numz to be?
Sam Chak
el 26 de Mzo. de 2025
@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)
Ver también
Categorías
Más información sobre Introduction to Installation and Licensing en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!