simulink error:Error in default port dimensions function of S-function ‘XXXXXXXXXXX’. This function does not fully set the dimensions of output port 2.


錯誤提示: Error in default port dimensions function of S-function ‘XXXXXXXXXXX’. This function does not fully set the dimensions of output port 2.

問題描述:將m函數添加到simulink中的MATLAB function中后,運行后顯示'XXXXXXXXXXXXX',這個模塊的端口配置錯誤。

解決方法:雙擊MATLAB function模塊,進入編程界面(如下)

點擊Edit data

找到對應的輸出端口,正確設置其大小,點擊右下角的apply應用即可解決問題。

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2026 CODEPRJ.COM