ss function is undefined.

조회 수: 34 (최근 30일)
Matthew Buschur
Matthew Buschur 2016년 6월 14일
댓글: Star Strider 2020년 11월 8일
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)

채택된 답변

Image Analyst
Image Analyst 2016년 6월 14일
That's in the Signal Processing Toolbox. Do you see that listed when you issue the "ver" command?
  댓글 수: 2
Matthew Buschur
Matthew Buschur 2016년 6월 14일
Yep that is the problem, I was thinking it might be a dependency issue. I couldn't remember if I slimmed the install down when I installed Matlab or not, but obviously I did.
Can one of you two direct me to the easiest way to install those two packages to my current install?
Matthew Buschur
Matthew Buschur 2016년 6월 14일
Actually never mind. I got it. Thank you both!!!

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

추가 답변 (2개)

Star Strider
Star Strider 2016년 6월 14일
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.

Faisal Budikasih
Faisal Budikasih 2020년 11월 8일
편집: Faisal Budikasih 2020년 11월 8일
i guess the right toolbox for the function ss is control system toolbox .

카테고리

Help CenterFile Exchange에서 Introduction 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