error in for loop
6 ビュー (過去 30 日間)
古いコメントを表示
I have a code
for x = 1:length(dirlist)
im = imread([pathname, dirlist(x).name]);
W=imresize(im,[12 10])
Q(x)=W(:)
end
i am getting the error as
In an assignment A(:) = B, the number of elements in A and B must be the same.
Error in ==> sa at 14 W(x)=W(:)
W(:) will give 120x1 matrix i like to save all these values in a new matriix Q,i have 10 images in my dataset,so i need out put in Q as 120x10 for all those 10 images
please help
0 件のコメント
採用された回答
Daniel Shub
2012 年 4 月 27 日
Q(:, x) = W(:);
3 件のコメント
Daniel Shub
2012 年 4 月 27 日
If the problem is solved please accept my answer. If the problem was not solved, but my answer was helpful, please vote for it.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Convert Image Type についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!