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