新人求助关于2014a里matlab function的问题
每次模拟的时候这个function都要出错,于是建了个很简单的模型,函数如下:functiony=fcn(u)y=u(1)+u(2)仿真后出现如下错误:1.Simulin...
每次模拟的时候这个function都要出错,于是建了个很简单的模型,函数如下:
function y = fcn(u)
y = u(1)+u(2)
仿真后出现如下错误:
1.
Simulink does not have enough information to determine output sizes for
this block. If you think the errors below are inaccurate, try specifying
types for the block inputs and/or sizes for the block outputs.
2.
Index expression out of bounds. Attempted to access element 2. The valid range is 1-1.
More information
Function 'MATLAB Function' (#62.42.43), line 4, column 12:
"2"
Launch diagnostic report.
3.
Errors occurred during parsing of MATLAB function 'MATLAB Function'(#61)
4.
Errors occurred during parsing of MATLAB function 'MATLAB Function'(#61)
求各位帮忙啊 展开
function y = fcn(u)
y = u(1)+u(2)
仿真后出现如下错误:
1.
Simulink does not have enough information to determine output sizes for
this block. If you think the errors below are inaccurate, try specifying
types for the block inputs and/or sizes for the block outputs.
2.
Index expression out of bounds. Attempted to access element 2. The valid range is 1-1.
More information
Function 'MATLAB Function' (#62.42.43), line 4, column 12:
"2"
Launch diagnostic report.
3.
Errors occurred during parsing of MATLAB function 'MATLAB Function'(#61)
4.
Errors occurred during parsing of MATLAB function 'MATLAB Function'(#61)
求各位帮忙啊 展开
3个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询