Info

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

hello every one, i'am a newbie, i have a error ? how can i fix it ???

조회 수: 1 (최근 30일)
Join Snow
Join Snow 2020년 6월 8일
마감: MATLAB Answer Bot 2021년 8월 20일
  댓글 수: 13
Walter Roberson
Walter Roberson 2020년 6월 8일
For the original CW16.jpg, then reshape(w1,128,2) works for me as w1 does have exactly 256 elements, as the img is 16 x 16.
However, unknown.jpg is 562 by 1679 and so has no chance of being reshaped to 128 x 2. If you were to try to resize it to 16 x 16 first, it would be unreadable.
Join Snow
Join Snow 2020년 6월 8일
thank you very much, I fixed it !!!

답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by