translate equation to matlab code
11 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Or Peer
am 16 Mai 2019
Beantwortet: Giuseppe
am 24 Apr. 2024
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 Kommentar
David Goodmanson
am 17 Mai 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.
Akzeptierte Antwort
Jon Wieser
am 16 Mai 2019
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))
0 Kommentare
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Characters and Strings finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!