How to fix error in port widths or dimentions on the reshape block input?
Show older comments
I need to make DCT image compression in Simulink. Image size by default has 3 dimensions, so I used reshape tool to remove the third dimension. Color Space Conversion tool only accepts 3 dimensional images, so I used reshape again. When I try to run the simulation, I get two following errors:
Error in port widths or dimensions. 'Input Port 1' of 'untitled/Reshape1' has 786432 elements. This port does not accept the dimensions (or orientation) specified by the input signal.
I thought reshape was supposed to accept any matrix as an input.

Accepted Answer
More Answers (0)
Categories
Find more on Neighborhood and Block Processing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!