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

조회 수: 23 (최근 30일)
Mesut Yilmaz
Mesut Yilmaz 2019년 11월 13일
댓글: Sam Chak 2025년 3월 26일
1.png
this simple command doesn't work even though I've entered all commands correctly
thx for answers...

채택된 답변

M
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
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)

jean carlos
jean carlos 2025년 3월 26일
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
Stephen23 2025년 3월 26일
"Unrecognized function or variable 'Numz'"
Solution: define Numz.
Question: what do you expect Numz to be?
Sam Chak
Sam Chak 2025년 3월 26일
@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.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by