Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

what wrong in my for loop?

조회 수: 3 (최근 30일)
Maruthi Maruthi
Maruthi Maruthi 2018년 1월 29일
마감: MATLAB Answer Bot 2021년 8월 20일
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
Maruthi Maruthi
Maruthi Maruthi 2018년 1월 29일
Sir, the above code showing the following error
Cell contents assignment to a non-cell array object.
Error in username_gpwd_net (line 15) target{i}=img_size(:);
Maruthi Maruthi
Maruthi Maruthi 2018년 1월 29일
Thank you very much sir, I got it..

답변 (0개)

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by