フィルターのクリア

reshape command debug/matrix exceeds dimensions

2 ビュー (過去 30 日間)
laplace laplace
laplace laplace 2013 年 10 月 3 日
編集済み: laplace laplace 2013 年 10 月 3 日
psz=length(pic);
p=0
for i=1:outs:(psz) % dividing in blocks
for j=1:outs:(psz)
p=p+1;
blocks(:,:,p)=pic(i:i+outs-1,j:j+outs-1);
%ins(:,p)=reshape(blocks(:,:,p)',1,ins')';
end
end
error: Index exceeds matrix dimensions.
Error in train (line 28) blocks(:,:,p)=pic(i:i+outs-1,j:j+outs-1);
is the problem at the values that variable p is allowed to take?

回答 (0 件)

カテゴリ

Help Center および File ExchangeMatrix Indexing についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by