Hello, I have a vector that state the location on xyz coordinate.
ohm=ohmxi+ohmyj+ohmzk
how can i write this coordinates as a vector on matlab? Can you help me?
ohmx=((1-mu^2))^1/2*sin(fi); % the direction of the fission product of x
ohmy=((1-mu^2))^1/2*cos(fi); %the direction of the fission product of y
ohmz=mu;
ohm=colon(ohmx,ohmy,ohmz) ;
is this gonna work?

 Respuesta aceptada

David Hill
David Hill el 28 de Oct. de 2021

0 votos

ohmx=((1-mu^2))^1/2*sin(fi);
ohmy=((1-mu^2))^1/2*cos(fi);
ohmz=mu;
ohm=[ohmx,ohmy,ohmz];%this is your vector

Más respuestas (0)

Categorías

Más información sobre Numerical Integration and Differential Equations en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 28 de Oct. de 2021

Comentada:

el 28 de Oct. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by