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

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