reshape
古いコメントを表示
??? 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?
採用された回答
その他の回答 (2 件)
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
2011 年 4 月 7 日
0 投票
3 件のコメント
Matt Fig
2011 年 4 月 7 日
I sent you a message with my email in it. Did you get it? I used the Contact Stephanie link on your Answers page. If you didn't get it, did you use a valid email when signing up for your MathWorks account?
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
2019 年 4 月 2 日
Instead of asking in an 8 year old thread respond to your question.
カテゴリ
ヘルプ センター および File Exchange で Data Type Identification についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!