('tf' requires one of the following) "tf commend is not working" HELP PLS!

22 vues (au cours des 30 derniers jours)
Mesut Yilmaz
Mesut Yilmaz le 13 Nov 2019
Commenté : Sam Chak le 26 Mar 2025
1.png
this simple command doesn't work even though I've entered all commands correctly
thx for answers...

Réponse acceptée

M
M le 13 Nov 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.
  1 commentaire
Mesut Yilmaz
Mesut Yilmaz le 13 Nov 2019
many thanks I installed the control system toolbox and it worked

Connectez-vous pour commenter.

Plus de réponses (2)

Supriya Joshi
Supriya Joshi le 27 Juil 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)

jean carlos
jean carlos le 26 Mar 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 commentaires
Stephen23
Stephen23 le 26 Mar 2025
"Unrecognized function or variable 'Numz'"
Solution: define Numz.
Question: what do you expect Numz to be?
Sam Chak
Sam Chak le 26 Mar 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)
Gzl = 2 z --------------- 4 z^3 + 3 z - 1 Sample time: unspecified Discrete-time transfer function.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Introduction to Installation and Licensing dans Help Center et File Exchange

Produits


Version

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by