how do i ensure that the correct function is called when the same function is in multiple toolboxes

the function ss appears to me included in a number of toolboxes
>> which -all ss
/Applications/MATLAB_R2016b.app/toolbox/ident/ident/@idParametric/ss.m % idParametric method
/Applications/MATLAB_R2016b.app/toolbox/shared/controllib/engine/@StaticModel/ss.m % StaticModel method
/Applications/MATLAB_R2016b.app/toolbox/signal/signal/@dfilt/ss.m % dfilt method
when running the following i get this error msg; "Undefined function 'ss' for input arguments of type 'double'"
>> tau = 5;
K = 2;
A = -1/tau;
B = K/tau;
C = 1;
D = 0;
>>
>> sys = ss(A,B,C,D)
Undefined function 'ss' for input arguments
of type 'double'.

 채택된 답변

>> which -all ss
/Applications/MATLAB_R2016b.app/toolbox/control/ctrlmodels/@ss/ss.m % ss constructor
/Applications/MATLAB_R2016b.app/toolbox/signal/signal/@dfilt/ss.m % dfilt method
/Applications/MATLAB_R2016b.app/toolbox/control/ctrlmodels/@DynamicSystem/ss.m % DynamicSystem method
/Applications/MATLAB_R2016b.app/toolbox/shared/controllib/engine/@StaticModel/ss.m % StaticModel method
/Applications/MATLAB_R2016b.app/toolbox/mpc/mpc/@mpc/ss.m % mpc method
You are missing the first of those, the Control System Toolbox class constructor of ss . It appears to me that you might not have that toolbox installed.

댓글 수: 1

Walter, thanks so much for taking the time to reply. the control system toolbox was not installed

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

질문:

2016년 10월 28일

댓글:

2016년 10월 28일

Community Treasure Hunt

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

Start Hunting!

Translated by