translate equation to matlab code

조회 수: 17 (최근 30일)
Or Peer
Or Peer 2019년 5월 16일
답변: Giuseppe 2024년 4월 24일 13:24
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
David Goodmanson
David Goodmanson 2019년 5월 17일
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.

댓글을 달려면 로그인하십시오.

채택된 답변

Jon Wieser
Jon Wieser 2019년 5월 16일
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))

추가 답변 (1개)

Giuseppe
Giuseppe 2024년 4월 24일 13:24
e^(-x^2)*sin(x)

카테고리

Help CenterFile Exchange에서 Characters and Strings에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by