matlab求定积分报错The integrand function must return an output vector of the same length as the i>> df=@(x)exp(x)*(exp(x))'df = @(x)exp(x)*(exp(x))'>> quad(df,0,1)Error using quad (line 75)The integrand function must return an output vector of
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/17 02:43:19
matlab求定积分报错The integrand function must return an output vector of the same length as the i>> df=@(x)exp(x)*(exp(x))'df = @(x)exp(x)*(exp(x))'>> quad(df,0,1)Error using quad (line 75)The integrand function must return an output vector of
matlab求定积分报错The integrand function must return an output vector of the same length as the i
>> df=@(x)exp(x)*(exp(x))'
df =
@(x)exp(x)*(exp(x))'
>> quad(df,0,1)
Error using quad (line 75)
The integrand function must return an output vector of the same length as the input vector.
求教exp(x)*exp(x)'的定积分如何求得?
matlab求定积分报错The integrand function must return an output vector of the same length as the i>> df=@(x)exp(x)*(exp(x))'df = @(x)exp(x)*(exp(x))'>> quad(df,0,1)Error using quad (line 75)The integrand function must return an output vector of
>> df=@(x) exp(x).*exp(x) % 数值积分要用 点乘
quad(df,0,1)
df =
@(x)exp(x).*exp(x)
ans =
3.1945