ss function is undefined.
21 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Matthew Buschur
am 14 Jun. 2016
Kommentiert: Star Strider
am 8 Nov. 2020
Hello,
I am trying to use the state space function, "ss" to solve four matrices. However, when I type my code in a new script file I get the following error:
*Undefined function or variable 'ss'.
Error in Homework5 (line 10) sys = ss(A,B,C,D);*
My code is shown below:
% A = [0 0 -(7/2); 1 0 -2; 0 1 -(5/2)];
B = [0; 0; (1/2)];
C = [1 0 0; 0 0 1];
D = [0; 0];
sys = ss(A,B,C,D);
step(sys)
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 14 Jun. 2016
That's in the Signal Processing Toolbox. Do you see that listed when you issue the "ver" command?
2 Kommentare
Weitere Antworten (2)
Star Strider
am 14 Jun. 2016
You have to have the Control System Toolbox or the Signal Processing Toolbox (or both, at best) installed to use the ‘ss’ function.
Type:
ver
in the Command Window to see if you have one or both of them.
0 Kommentare
Faisal Budikasih
am 8 Nov. 2020
Bearbeitet: Faisal Budikasih
am 8 Nov. 2020
i guess the right toolbox for the function ss is control system toolbox .
Siehe auch
Kategorien
Mehr zu Introduction to Installation and Licensing finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!