필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

State space representation coming out incorrect

조회 수: 1 (최근 30일)
Stephen Mixon
Stephen Mixon 2020년 10월 4일
마감: MATLAB Answer Bot 2021년 8월 20일
Struggling on a homework problem. The question is
My code is: q= 1 *10^-9;
m= 1 *10^-6;
g=[0;0;-1.6];
E=[1.23,0,10];
B=[0;0;36.13 * 10^-6];
v=3.2;
x_0=[0;0;0;v*cosd(45);0;v*sind(45);0];
A=[0,0,0,1,0,0,0;0,0,0,0,1,0,0;0,0,0,0,0,1,0;0,0,0,0,(q/m) * B(3),(-q/m) *B(2),0;0,0,0,(-q/m)*B(3),0,(q/m)*B(1),0;0,0,0,(q/m)*B(2),(-q/m)*B(1),0,0;0,0,0,0,0,0,0];
B=[0;0;0;(q/m)*E(1);(q/m)*E(2);(q/m)*E(3);1];
x_dot=(A*x_0)+B
My answers are coming out incorrect. Where is the error?
  댓글 수: 1
Alan Stevens
Alan Stevens 2020년 10월 5일
편집: Alan Stevens 2020년 10월 5일
First, make sure your units are consistent. v is given in km/s. g is in m/s^2 (though you don't seem to have used g!).

답변 (0개)

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by