Info
この質問は閉じられています。 編集または回答するには再度開いてください。
Following image has a equation to be coded in matlab but i m not getting how to use each iteration value from one code in another code.
1 回表示 (過去 30 日間)
古いコメントを表示
x1(k)i is the iterative values and i is the iteration
2 件のコメント
Guillaume
2018 年 3 月 2 日
If you meant to have an attachment, it's not present.
If you didn't, then I have no idea what you're asking.
回答 (1 件)
Tony Mohan Varghese
2018 年 3 月 21 日
Please elaborate on the nature of x1(k)i.
As I understand from the equation, x1(k)i can be considered as a 2D array which can store values for combinations of k and i. If that is the case, you can use the following code:
for i = 1:M
for k = 1:N
sum = sum + (x[k] - x_1[k][i])^2;
end
end
If this is not what you are looking for, please explain the nature of each variables used.
0 件のコメント
この質問は閉じられています。
参考
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!