Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

State space representation coming out incorrect

1 visualización (últimos 30 días)
Stephen Mixon
Stephen Mixon el 4 de Oct. de 2020
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
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 comentario
Alan Stevens
Alan Stevens el 5 de Oct. de 2020
Editada: Alan Stevens el 5 de Oct. de 2020
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!).

Respuestas (0)

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by