reshape

조회 수: 19 (최근 30일)
stephanie borg
stephanie borg 2011년 4월 6일
댓글: madhan ravi 2019년 4월 2일
??? Error using ==> reshape To RESHAPE the number of elements must not change.
Error in ==> sym_rec_img_preprocess at 32 Ibox = reshape(Ibox,[4 ((sizer*sizec)/noimages)]);
Error in ==> sym_rec_main2 at 78 img = sym_rec_img_preprocess(I, sizer, sizec,noimages);
sizer = size3Dr; %32
sizec = size3Dc;
noimages = sizer/6;
I = I3Dtotal(:,:,i);
img = sym_rec_img_preprocess(I, size3Dr, size3Dc, noimages); % line 78
what am i doing wrong?

채택된 답변

Matt Fig
Matt Fig 2011년 4월 6일
Go into sym_rec_img_preprocess and put these right before line 32:
size(Ibox)
size(sizer)
size(sizec)
noimages
Then tell us what the output to the command window says.
  댓글 수: 21
stephanie borg
stephanie borg 2011년 4월 6일
i sent you a personal msg...did you receive it?
Matt Fig
Matt Fig 2011년 4월 7일
No, I didn't. Did you use the interface that comes up when you click my name? (Contact Matt Fig)

댓글을 달려면 로그인하십시오.

추가 답변 (2개)

Laura Proctor
Laura Proctor 2011년 4월 6일
In the code sym_rec_img_preprocess, you are trying to use RESHAPE to reshape the variable Ibox to a size that is incompatible with the original size of Ibox. Try putting in a breakpoint on line 32 of sym_rec_img_preprocess and determine the size of Ibox as well as the size of (sizer*sizec)/noimages, you will see that:
4*(sizer*sizec)/noimages ~= numel(Ibox)

stephanie borg
stephanie borg 2011년 4월 7일
yes that 's what i did. is it possible if i send you the program? becaus I can't seem to do it write. When I eliminate all the errors it start again from the first one!
  댓글 수: 3
seyed hosein alhoseiny
seyed hosein alhoseiny 2019년 4월 2일
hi this error: reshape To RESHAPE the number of elements must not change dont Appear in MATLAB VER 2018a
but this error I see in MATLAB2016b
madhan ravi
madhan ravi 2019년 4월 2일
Instead of asking in an 8 year old thread respond to your question.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Data Type Identification에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by