Getting the following error:
>> sys = tf([1 2],[1 0 10])
Undefined function 'tf' for input arguments of type 'double'.
Using R2018b and control system toolbox is installed.

 채택된 답변

Fangjun Jiang
Fangjun Jiang 2019년 2월 22일

0 개 추천

run "which -all tf" to find out

댓글 수: 2

James Phegley
James Phegley 2019년 2월 22일
>> which -all tf
C:\Program Files\MATLAB\R2018b\toolbox\mpc\mpc\@mpc\tf.m % mpc method
C:\Program Files\MATLAB\R2018b\toolbox\ident\ident\@idParametric\tf.m % idParametric method
C:\Program Files\MATLAB\R2018b\toolbox\shared\controllib\engine\@StaticModel\tf.m % StaticModel method
C:\Program Files\MATLAB\R2018b\toolbox\dsp\filterdesign\@mfilt\tf.m % mfilt method
C:\Program Files\MATLAB\R2018b\toolbox\signal\signal\@dfilt\tf.m % dfilt method
Fangjun Jiang
Fangjun Jiang 2019년 2월 22일
편집: Fangjun Jiang 2019년 2월 22일
while other tooltoxes have tf() for transfer function, your Control System Toolbox was not there.
Should have
\MATLAB\R2018b\toolbox\control\ctrlmodels\@tf\tf.m
check your Control System Toolbox
ver control

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

추가 답변 (1개)

Marco Corral Flores
Marco Corral Flores 2020년 11월 1일

0 개 추천

106/5000
Hi:
I have problems when using the "tf" command
Please could you help me in this regard.
link video youtube: https://youtu.be/Xr3kPGrHGSg

댓글 수: 1

Fangjun Jiang
Fangjun Jiang 2020년 11월 2일
The error message indicates you don't have one of those needed toolboxes

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

카테고리

도움말 센터 및 File Exchange에서 Control System Toolbox에 대해 자세히 알아보기

제품

태그

질문:

2019년 2월 22일

댓글:

2020년 11월 2일

Community Treasure Hunt

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

Start Hunting!

Translated by