本文主要是介绍Simulink报错:Computed maximum size of the output of function ‘fspecial‘ is not bounded.Static memory,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
在Simulink中的function中,有如下代码
function y = image_blur_inject(degree, angle, u)H = fspecial('motion', degree, angle);
会出现报错:
Computed maximum size of the output of function 'fspecial' is not bounded.
Static memory allocation requires all sizes to be bounded.
The computed size is [:? x :?].
Please consider enabling dynamic memory allocation to allow unbounded sizes.
根据提示,打开Model Settings
选择左边的Simulation Target,在右边勾选Dynamic memory allocation in MATLAB functions
问题解决
这篇关于Simulink报错:Computed maximum size of the output of function ‘fspecial‘ is not bounded.Static memory的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!