translate equation to matlab code

Capture_equation.PNG
hellow I would like to translate this equation to matlab code, I am new to matlab language and syntax and would very much appreciate help.

1 comentario

David Goodmanson
David Goodmanson el 17 de Mayo de 2019
Hi Or,
If you are doing this numerically, as you probably already know, N = [1 2 3] creates a row vector, N = [1; 2; 3] creates a column vector.
Dot and cross functions are available in Matlab, see 'doc dot' and 'doc cross'. The cross function outputs a column vector if both inputs are column vectors, and a row vector otherwise.

Iniciar sesión para comentar.

 Respuesta aceptada

Jon Wieser
Jon Wieser el 16 de Mayo de 2019

1 voto

s2_hat= n1/n2*(N_hat*(-N_hat*s1_hat))-N_hat*sqrt(1-(n1/n2)^2*(N_hat*s1_hat)*(N_hat*s1_hat))

Más respuestas (1)

Categorías

Más información sobre Statics and Dynamics en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 16 de Mayo de 2019

Respondida:

el 24 de Abr. de 2024

Community Treasure Hunt

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

Start Hunting!

Translated by