请问matlab里Undefined function 'int' for input arguments of type 'double'. 是什么意思呢?

日期:2018-03-07 16:32:46 人气:3

请问matlab里Undefined function 'int' for input arguments of type 'double'. 是什么意思呢?

这句警告,Undefined function 'int' for input arguments of type 'double'. 的意思是积分函数的变量类型未定义为“双”输入参数。 错误的原因,是 ya=int(x.^3); 的代码上一句有问题,不能重新把x定义为数组变量,积分只能对变量积分,而不能对数值积分。 其他主要错误,①y=[0,x]的个数与x的个数不相等;②计算ya值,应for语句,把ya一个一个地计算出来。 整个代码应这样写: syms x ya=in
    A+
热门评论