![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1468296/image.png)
Dimension error in simulink
6 ビュー (過去 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?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1201988/image.jpeg)
0 件のコメント
回答 (1 件)
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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1468296/image.png)
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Interactive Model Editing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!