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 ExchangeIntroduction to Installation and Licensing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by