필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

how to calculate this

조회 수: 1 (최근 30일)
Nasir Qazi
Nasir Qazi 2012년 2월 20일
마감: MATLAB Answer Bot 2021년 8월 20일
I need a help in this to find in matlab ∑_i∑_j[y_(i ) y_j √(a_i a_j e_i e_j )]
where only yi, yj are same component which are C1,C2,C3,C4 , and each components has a value of aj,aj,ei,ej , this sign ∑ came twice in here and I dont know how to expand this equation ..

답변 (1개)

Image Analyst
Image Analyst 2012년 2월 20일
Wouldn't it just be
sumOfArray = 0;
for ii = 1 : lastI
for jj = 1 : lastJ
sumOfArray = sumOfArray + y(ii)*y(jj)*sqrt(a(ii)*a(jj)*e(ii)*e(jj));
end
end
  댓글 수: 1
Nasir Qazi
Nasir Qazi 2012년 2월 21일
a and e has different values in it

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by