Borrar filtros
Borrar filtros

Simulink LDPC coding issues

3 visualizaciones (últimos 30 días)
Alexander Benedict
Alexander Benedict el 17 de Sept. de 2022
Editada: Aman Banthia el 12 de Sept. de 2023
I am attempting to get a simulink setup wherein I can give a specific matrix, ideally as a sparse, as I will be dealing with matrices up to the thousands. Ive encountered issues with importing the matrix, I believe I can get it correct with a full matrix, as a temporary fix. Now I am getting the errors such as;
As you can see I'm current using a 9x12 matrix. I've googled these issues and am unable to find the answer I desire or can't understand the answers I've seen.

Respuestas (1)

Aman Banthia
Aman Banthia el 12 de Sept. de 2023
Editada: Aman Banthia el 12 de Sept. de 2023
Hi Alexander,
I understand you are getting some errors while trying to use matrices inside your Simulink model.
The errors you mentioned indicate issues with the dimensions and port widths in your Simulink model. The following might be some of the probable reasons for those errors:
1. Multichannel operation is not supported:
This error suggests that you are trying to perform a multichannel operation, which is not supported by the specific block or operation you are using in your Simulink model. It could be related to how you are handling the matrix or the specific block causing the error.
To resolve this error, you need to identify the block or operation that is causing the issue and review its documentation or parameters. Ensure that you are using the block correctly and that it supports the dimensions or operations you are trying to perform.
2. Error in port widths or dimensions:
This error indicates a mismatch between the dimensions of the input/output ports of the blocks in your Simulink model. In the specific case you mentioned, it states that the 'Output Port 1' of the 'Constant' block is a [9x12] matrix.
To resolve this error, you need to ensure that the dimensions of the output port match the expected dimensions of the connected blocks or operations. In this case, you might need to adjust the dimensions of the 'Constant' block output to match the requirements of the subsequent blocks.
If you are working with a sparse matrix, you might need to convert it to a full matrix before using it in the Simulink model. This can be done using the appropriate MATLAB functions, such as `full()`.
3. Dealing with large matrices:
If you need to work with large matrices, such as thousands of rows and columns, it is advisable to consider the computational and memory requirements of your system. Simulink and MATLAB have certain limitations on the size of matrices they can handle efficiently.
Please find the MATLAB documentation link for ‘full()’ function below:
Hope the above solution helps you.
Best regards,
Aman Banthia

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by