give the matlab code for this function

I need solution of below equation and please give the matlab code for it.
n=size of matrix y

1 件のコメント

madhan ravi
madhan ravi 2019 年 3 月 31 日
Show the code what you have tried , nobody will do the homework for you.

回答 (1 件)

MUTYALA NAGABABU
MUTYALA NAGABABU 2019 年 3 月 31 日

0 投票

j=sqrt(2);
y=[1+j*1 1+j*2
2+j*3 3+j*3];
v=[1+j*0
1+j*3];
i=1;
n=2;
M = @(i) abs(v(i)) .* sum( abs(v(1:n)) .* abs(y(i,1:n)) .* cos(angle(y(i,1:n) + angle(y(1:n) - angle(y(i))))))
The above is the code i have tried.

1 件のコメント

Walter Roberson
Walter Roberson 2019 年 3 月 31 日
Change
abs(v(1:n))
to
abs(reshape(v(1:n),1,[]))

この質問は閉じられています。

質問済み:

2019 年 3 月 31 日

閉鎖済み:

2021 年 8 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by