필터 지우기
필터 지우기

Dimension error in simulink

조회 수: 6 (최근 30일)
Hamza Zaoui
Hamza Zaoui 2022년 11월 21일
답변: SANKALP DEV 2023년 8월 30일
i want to implement an imc. now i have a problem with the dimension of the port, see script. how can i solve it?

답변 (1개)

SANKALP DEV
SANKALP DEV 2023년 8월 30일
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.

카테고리

Help CenterFile Exchange에서 Interactive Model Editing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by