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-2025 CODEPRJ.COM