MATLAB: Do I get this error: ‘Undefined function ‘ss’ for input arguments of type ‘double’.

digital signal processingerrorstate-space

close all
clear all
clc
A1=1;
A2=0.5;
A3=(1/3);
R1=60;
R2=30;
R3=24;
w= 0.0167;
u=0.0333;
A=[(-1/(R1*A1)) 0 0; 1/(R1*A1) (-1/(R2*A2))-(1/(R3*A2)) 1/(R3*A2); 0 1/(R3*A3) -1/(R3*A3)];
B=[1/A1; 0; 1/A3];
C=[1 0 0; 0 1 0; 0 0 1];
D=[0; 0; 0];
sys=ss(A,B,C,D);
figure(1)
step(sys,300)

Best Answer

That code requires the Control System Toolbox; https://www.mathworks.com/help/control/ref/ss.html be installed and licensed.