Effacer les filtres
Effacer les filtres

reshape command debug/matrix exceeds dimensions

2 vues (au cours des 30 derniers jours)
laplace laplace
laplace laplace le 3 Oct 2013
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?

Réponses (0)

Catégories

En savoir plus sur Matrix Indexing dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by