Error unrecognised function or Variable 'ss'

139 Ansichten (letzte 30 Tage)
Syed Ghayyour Ahmed
Syed Ghayyour Ahmed am 3 Mai 2020
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
impulse(sys1, sys2);
step(sys1, sys2);
  5 Kommentare

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Arkadiy Turevskiy
Arkadiy Turevskiy am 7 Okt. 2020
This question gets a lot of views, so summarizing the answer: this error is due to Control System Toolbox not being installed.
  2 Kommentare
Arkadiy Turevskiy
Arkadiy Turevskiy am 1 Mär. 2021
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.
If you are uncomfortable sharing the code, please contact MathWorks technical support.

Melden Sie sich an, um zu kommentieren.


Mehr zu Introduction to Installation and Licensing finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by