Check for incorrect argument data type or missing argument in call to function 'lsim'.

조회 수: 1 (최근 30일)
Why doesn't matlab actually give you indicators to where the error is. Only doing it because of a class and have no intentions to actually learn it as I'll never use it in my career.
A = [-1.0889e-2 +2.8539e+1 -2.3779e+1 -3.2154e+1; -9.1949e-5 -7.9044e-1 +9.4864e-1 -1.6017e-3; +3.1611e-5 -6.3460e-1 -1.0254e+0 0; 0 0 1 0];
B = [+9.9851e+0 +1.6333e+1; -1.0219e-1 0; -1.1464e+1 0; 0 0];
C = eye(4);
D = zeros(4,2);
d2r = 2*pi;
%H1 = 20,000;
%Vcm1 = 700;
de = -0.1*ones(1001,1)*d2r;
dth = 0*ones(1001,1);
u =[de dth];
%Cchord = 11.32;
%Th = 1.9970;
t = linspace(0,10,1001).';
% gives error of unrecognized function or variable 'alp' alp=alpha
%x = [Vcm1, alp, q, Th];
%y = [Cx + du];
[y,x] = lsim(A,B,C,D,u,t);

답변 (1개)

David Scidmore
David Scidmore 2021년 4월 13일
I figure it out by looking further into notes.
I downloaded an addon and used.
plot(t,x(:,1),'-k')

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

태그

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by