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/07/27 17:59:13
![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](/uploads/image/z/15017666-50-6.jpg?t=matlab%E6%B1%82%E5%AE%9A%E7%A7%AF%E5%88%86%E6%8A%A5%E9%94%99The+integrand+function+must+return+an+output+vector+of+the+same+length+as+the+i%3E%3E+df%3D%40%28x%29exp%28x%29%2A%28exp%28x%29%29%27df+%3D+%40%28x%29exp%28x%29%2A%28exp%28x%29%29%27%3E%3E+quad%28df%2C0%2C1%29Error+using+quad+%28line+75%29The+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
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