フィルターのクリア

how to add values of each iteration to a variable?

2 ビュー (過去 30 日間)
sheno39
sheno39 2014 年 2 月 25 日
コメント済み: sheno39 2014 年 2 月 25 日
i have to store the values of every iteration.. but i got only the last values.. what correct i have to do? here is my code
if true
[loc,ctr]=kmeans(hogfeat,20);
b=unique(loc);
for i=1:size(b,1)
c=hogfeat(find(loc==b(i,1)));
end
end

採用された回答

Walter Roberson
Walter Roberson 2014 年 2 月 25 日
c{i} = hogfeat(find(loc==b(i,1)));
  1 件のコメント
sheno39
sheno39 2014 年 2 月 25 日
thank you sir.. i got my answer..

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLoops and Conditional Statements についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by