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.

조회 수: 6 (최근 30일)
x1(k)i is the iterative values and i is the iteration

답변 (1개)

Tony Mohan Varghese
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.

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by