Delete a block in Simulink changes the mux inputs and raises an error
조회 수: 4 (최근 30일)
이전 댓글 표시
When I comment out some blocks from the Simulink file, it raised the following error,
----------------------------------------------------------------
Error in port widths or dimensions. 'Output Port 1' of 'closeloop_thetaPhi_both_2021_12_03/Saturation' is a one dimensional vector with 1 elements.
Component: Simulink | Category: Model error
Error in port widths or dimensions. 'Input Port 2' of 'closeloop_thetaPhi_both_2021_12_03/Mux' is a one dimensional vector with 2 elements.
-----------------------------------
What I did was remove the fcn blocks and connect the lines.
![Original_diagram](https://www.mathworks.com/matlabcentral/answers/uploaded_files/829210/Original_diagram.png)
This is the rearranged version (the one creates errors). As in the diagram, saturation block outputs the 1 dimention values but Mux sees it as a 2 dimension vector
![error block](https://www.mathworks.com/matlabcentral/answers/uploaded_files/829215/error%20block.png)
can anyone help me to solve this issue.
댓글 수: 0
답변 (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!