what wrong in my for loop?
Informazioni
Questa domanda è chiusa. Riaprila per modificarla o per rispondere.
Mostra commenti meno recenti
Sir, Please help, where I'm wrong in the following code. I got an error like this .. Subscripted assignment dimension mismatch.
Error in one (line 15) target(:,i)=img_size(:); Please help me sir..
imgData=imageSet(filename,'recursive')
count = numel(imgData)
for i=1:count
img=read(imgData(i),1);
img_size=imresize(img,[100 100]);
img_size=double(img_size);
target(:,i)=img_size(:);
end
5 Commenti
Torsten
il 29 Gen 2018
"img_size" is a two-dimensional array. But in the last line within the for-loop, you treat it as one-dimensional.
Best wishes
Torsten.
Maruthi Maruthi
il 29 Gen 2018
Torsten
il 29 Gen 2018
target{i} = img_size ?
Best wishes
Torsten.
Maruthi Maruthi
il 29 Gen 2018
Maruthi Maruthi
il 29 Gen 2018
Risposte (0)
Questa domanda è chiusa.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!