码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2018-12-14 17:33:28      阅读:842      评论:0      收藏:0      [点我收藏+]

标签:this   运行   tput   输出   image   set   解决   cti   error   

错误提示: 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应用即可解决问题。

 

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

标签:this   运行   tput   输出   image   set   解决   cti   error   

原文地址:https://www.cnblogs.com/pupilLZT/p/10119625.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!