Error on using tf function and rlocus

조회 수: 11 (최근 30일)
Filippo Colorio
Filippo Colorio 2023년 1월 11일
댓글: Star Strider 2023년 1월 12일
Hi
I'm trying to use this simple comand:
>> sys = tf([2 5 1],[1 2 3]);
>> rlocus(sys)
(it's the same as the example in Matlab tf page)
When I run these two lines Matlab diplays as follow:
The specified superclass 'numlti' contains a parse error, cannot be found on MATLAB's search path, or is shadowed by another file with the same name.
I try to search conflicts using
>> path
>> which -all <conflicting_function>
but he says '<conflicting_function>' not found.
How can I fix this?

답변 (1개)

Star Strider
Star Strider 2023년 1월 11일
The correct approach to finding potential overshadowing functions or variables is:
which -all tf
/MATLAB/toolbox/control/ctrlmodels/@tf/tf.m % tf constructor /MATLAB/toolbox/control/ctrlmodels/@DynamicSystem/tf.m % DynamicSystem method /MATLAB/toolbox/ident/ident/@idParametric/tf.m % idParametric method /MATLAB/toolbox/mpc/mpc/@mpc/tf.m % mpc method /MATLAB/toolbox/shared/controllib/engine/@StaticModel/tf.m % StaticModel method
which -all rlocus
/MATLAB/toolbox/control/ctrlobsolete/rlocus.m /MATLAB/toolbox/control/ctrldesign/@DynamicSystem/rlocus.m % DynamicSystem method
and should only produce that sort of result.
Run these from a script or the Command Window:
restoredefaultpath
rehash toolboxcache
then try the example code again.
If it still fails, Contact Support.
.
  댓글 수: 2
Filippo Colorio
Filippo Colorio 2023년 1월 12일
Thank you for the answer.
Unfortunately this does not work and displays the same error message.
Maybe i should contact the Matlab Support
Best regards.
Star Strider
Star Strider 2023년 1월 12일
My pleasure!
I hope MathWorks Support can solve this for you, since otherwise uninstalling and reinstalling MATLAB may be your only option.

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

카테고리

Help CenterFile Exchange에서 Programming에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by