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