Error on transmitting image simulink [MODEL INCLUDED]

Hi,
I'm creating a simulink scheme to transmit an image through QAM modulation. However, I get this error:
Cannot propagate 3-D signal from 'Output Port 1' of block 'ImageQAM_2023/Image From File' to 'Input Port 1' of block 'ImageQAM_2023/Integer to Bit Converter'. The latter block does not accept signals with greater than 2 dimensions (either entirely or in its current configuration). Here is my scheme. Any clue? Thanks
UPDATED (23/2/2023): I've uploaded the model and an image to check.

 Réponse acceptée

Walter Roberson
Walter Roberson le 21 Fév 2023

0 votes

Your image is rgb but the downstream cannot handle rgb. You will need to convert to gray or convert to pseudocolor or reshape to be same number of rows but 3 times as many columns

9 commentaires

Thank you. I've converted the image from RGB to monochrome BMP and I receive these errors:
Error in 'ImageQAM_2023/Integer to Bit Converter': Multichannel operation is not supported.
Error in port widths or dimensions. 'Output Port 1' of 'ImageQAM_2023/Image From File' is a [150x150] matrix.
I cannot find solutions to the above errors. Please, some help. Thanks
I guess you will need to use a reshape block to convert it into a vector.
Great! I could solve that issue, however, I don't know why the Error Rate Calculation block launches an error:
I guess something I'm missing.
Have you configured a solver block for the entire model, and set it to discrete time?
I guess it is a solver configuration block. Where should I connect it and how to configure it? It is the first time I use this block.
Thank you. I've tried auto and configured a fixed step size e.g. 0.1, however, I get this error: All sample times for the Constellation Diagram block must be discrete. Continuous and infinite sample times are not allowed.
Please attach your model so someone can examine in more detail to figure out where the continuous parts are arising.
Done! Thanks

Connectez-vous pour commenter.

Plus de réponses (0)

Produits

Version

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by