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/05/10 07:58:35
matlab求定积分报错Theintegrandfunctionmustreturnanoutputvectorofthesamelengthasthei>>df=@(x)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
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