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 Comment

Show the code what you have tried , nobody will do the homework for you.

Answers (1)

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.

This question is closed.

Asked:

on 31 Mar 2019

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!