How i save the value of c in deach loop and sum these value after each value then using value in another eq outside loop??
情報
この質問は閉じられています。 編集または回答するには再度開いてください。
古いコメントを表示
Let say i have this simple loop,,
for i=1:3
A=x((i-1)*3+1);
B=x((i-1)*3+2);
C=x((i-1)*3+3);
Z=A*B+C*A;
end
i want the value of C in each loop to be sum and then using it in this eq let say,
W=E-C
because the value of C are different in each loop.
Thanks ^_^.
0 件のコメント
回答 (1 件)
この質問は閉じられています。
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!