Error unrecognised function or Variable 'ss'

Hello
I am trying to use the state space model in my MATLAB code, however my Matlab is not recognising it and giving me always the error. I am using R2020a Student Version on Mac Pc.
My Error:
Unrecognized function or variable 'ss'.
Error in ex_2 (line 16)
sys1 = ss(-1/(R*C), 1/(R*C), 1, 0);
My Code:
figure('Name', 'Exercise e)', 'NumberTitle', 'off');
%%Setting arguments and values
R = 1000;
C = 0.001;
L = 100;
%%Establishing matrixes for later use
matrix1 = [0, -1/(L*C); 1, -R/L];
matrix2 = [1, 0];
matrix3 = [0, 1/(L*C)];
%%Creating the functions of the graphs
sys1 = ss(-1/(R*C), 1/(R*C), 1, 0);
sys2 = ss(matrix1, matrix2, matrix3, 0);
%%Drawing the graphs on the same figure
subplot(2,1,1);
impulse(sys1, sys2);
subplot(2,1,2);
step(sys1, sys2);

5 件のコメント

Walter Roberson
Walter Roberson 2020 年 5 月 3 日
need the Control System Toolbox to be licensed and installed
Syed Ghayyour Ahmed
Syed Ghayyour Ahmed 2020 年 5 月 3 日
Can you please tell me which tool is that exactly ?
Syed Ghayyour Ahmed
Syed Ghayyour Ahmed 2020 年 5 月 3 日
Thank you very much. My Problem is solved by downloading Control System Tool Box.
BAKARI Aymen
BAKARI Aymen 2020 年 6 月 13 日
i have the same problem !
could you please told me how can i install the control system toolbox
Walter Roberson
Walter Roberson 2020 年 6 月 13 日
編集済み: Walter Roberson 2020 年 10 月 7 日

サインインしてコメントする。

回答 (1 件)

Arkadiy Turevskiy
Arkadiy Turevskiy 2020 年 10 月 7 日

2 投票

This question gets a lot of views, so summarizing the answer: this error is due to Control System Toolbox not being installed.

3 件のコメント

Harsh Jaiswal
Harsh Jaiswal 2021 年 2 月 28 日
Hi,
I actually have it installed and still get the error. I dont know what could be wrong.
Arkadiy Turevskiy
Arkadiy Turevskiy 2021 年 3 月 1 日
Hi, sorry to hear you are having issues.
Can you please post the code that is creating the error. Please also type "ver" at the command line and post the resulting list of products.
>>ver
If you are uncomfortable sharing the code, please contact MathWorks technical support.
Arkadiy
Dániel
Dániel 2024 年 2 月 20 日
restarting matlab worked for me

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeIntroduction to Installation and Licensing についてさらに検索

質問済み:

2020 年 5 月 3 日

コメント済み:

2024 年 2 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by