Dimension error in simulink

5 visualizzazioni (ultimi 30 giorni)
Hamza Zaoui
Hamza Zaoui il 21 Nov 2022
Risposto: SANKALP DEV il 30 Ago 2023
i want to implement an imc. now i have a problem with the dimension of the port, see script. how can i solve it?

Risposte (1)

SANKALP DEV
SANKALP DEV il 30 Ago 2023
Hello Hamza,
I understand that you are implementing IMC model in Simulink and encountering error in port width or dimensions. Upon investigating your model, the controller output, which is of single dimension, is being added to the MATLAB function’s block output, which in turn is two dimensional, this is causing the error.
To resolve this, you can simply use a “Demux” block to split the 2-Dimensional signal into two one dimensional signals and then continue with adding the controller’s output to them individually, as shown in the image given below.
I hope this helps.

Categorie

Scopri di più su Simulink in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by