try to get specific index in table and try to store in table but got empty table

조회 수: 1 (최근 30일)
hi, i want to get the last value for each row in 'result' and store into table 'value_centroid'. However i get empty table.
result:
0 0 0 0 0 0 4.03
0 0 0 0 0 0 5.17
ii=1
value_centroid = zeros(1,[])
for cc=ii:k
ii
step2_percluster=kirapercluster(ii,centroid,k)
result=array2table(step2_percluster)
value_centroid(ii,[])=result{ii,end}
ii=ii+1
end
  댓글 수: 3
Khairul nur
Khairul nur 2021년 1월 18일
i manage to get what i want by below code, btw tq for the time and noticing my question :)
for cc=1:k
step2_percluster=kirapercluster(cc,centroid,k)
result=array2table(step2_percluster)
iii(:,cc)=result(:,end)
end

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by