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 Kommentar

madhan ravi
madhan ravi am 31 Mär. 2019
Show the code what you have tried , nobody will do the homework for you.

Antworten (1)

MUTYALA NAGABABU
MUTYALA NAGABABU am 31 Mär. 2019

0 Stimmen

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 Kommentar

Change
abs(v(1:n))
to
abs(reshape(v(1:n),1,[]))

Diese Frage ist geschlossen.

Gefragt:

am 31 Mär. 2019

Geschlossen:

am 20 Aug. 2021

Community Treasure Hunt

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

Start Hunting!

Translated by