What is DynamicSystem/lsim ?
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
% Isim Method % %------------------------------------------------------------------ % clc clear ll
% 모드 및 고유진동수 % load('elcen_NS.dat'); MT=[1.0 0.0 0.0; 0.0 1.5 0.0; 0.0 0.0 2.0]; KT=60* [1 -1 0; -1 3 -2; 0 -2 5]; [V, D] = eigs(KT, MT, 3, 'SA'); zeta=0.05 acc_g=-elcen_NS*(9.81); N=length(acc_g); dt=0.02; T=0:dt:dt*(N-1); % % 감쇠행렬 % nXi1 = 1; Xi1 = 0.05; %고유진동수 번호 및 관련 감쇠비 nXi2 = 3; Xi2 = 0.05; RD = sqrt(D); CO =1/2*[1/RD(nXi1,nXi1), RD(nXi1,nXi1); 1/RD(nXi2,nXi2), RD(nXi2,nXi2)]; AB = inv(CO)*[Xi1; Xi2]; CT = AB(1)*MT + AB(2)*KT; % wn=sqrt(MT./KT) [V, wn] = eigs(KT, MT, 3, 'SA');
% % 물리좌표계 응답 %
%..construct the state-space matrices % A=[zeros(3) eye(3);-wn^2 -2*zeta*wn]; % B=[zeros(3);-eye(3)]; % C=[eye(3) zeros(3);zeros(3) eye(3);-wn^2 -2*zeta*wn]; % D=[zeros(3);zeros(3);-eye(3)]; A=[zeros(3) eye(3);-wn^2 -2*zeta*wn]; B=[zeros(3);-eye(3)]; C=[zeros(3) eye(3);-wn^2 -2*zeta*wn]; D=[zeros(3);-eye(3)];
% %..obtain the response time history u=acc_g; [y]=lsim(A,B,C,D,u,T); % y has two columns
--------------------------------------------------------------------------- 다음 사용 중 오류가 발생함: DynamicSystem/lsim (line 84) When simulating the response to a specific input signal, the input data U must be a matrix with as many rows as samples in the time vector T, and as many columns as input channels.
오류 발생: lsim (line 114) [yout,t1,x] = lsim(sys,u,t,x0);
오류 발생: lsim_01 (line 48) [y]=lsim(A,B,C,D,u,T); % y has two columns
help me plz ...
0 commentaires
Réponses (0)
Voir également
Catégories
En savoir plus sur Time and Frequency Domain Analysis dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!