Error using reshape To RESHAPE "the number of elements must not change"

1.JPG

3 Comments

As outside observers we have no reason to expect that BICH5 is any particular size. For one thing it looks like it is intended to be binary, which would be (probably) 8 bits per original row and original column.
Thanks To your Response Dear Walter Roberson
What Your suggestion to resolve this error i really try every thing but whithout avail
thanks alot
You tried everything except telling us what size(CH) is and what size(bICH5) is.

Sign in to comment.

 Accepted Answer

Looks like you want seq1 to be a row vector. So try omitting the number of columns:
seq1 = reshape(bICH5, 1, []);
Other errors will probably follow so I recommend you really try to understand what is going on rather than just applying random band-aid fixes like this.

1 Comment

Thanks Dear Image Analyst
The Error Solved
The Error Was In My input Image Type
Thanks For your Reactive

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!