How can I create a bigger matrix/array, having 200 zeros matrices in it?
1 回表示 (過去 30 日間)
古いコメントを表示
I want to compute HSV histograms for 200 images, and for this purpose I have to initialize 200 zeros matrices for computing and saving the values in each zeros matrix. How can I do that in MATLAB? Thanks
0 件のコメント
回答 (2 件)
dpb
2014 年 4 月 8 日
Presuming you fix the number of bins for each, just
h=zeros(200,nBins); % should do it
If you're going to use different sizes, you'd either use cell or perhaps nan instead of zeros to have the indicator missing value in an array.
I'd wonder if you couldn't, however, write the processing to not need all 200 of them in memory at the same time.
2 件のコメント
参考
カテゴリ
Help Center および File Exchange で Matrix Indexing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!