quad函数积分维度不对。
9 次查看(过去 30 天)
显示 更早的评论
本人用quad函数积分出现下面错误
The integrand function must return an output vector of the same length as the input vector.
程序
syms x y theta
x=cos(theta);
y=sin(theta);
l=quad(@(theta)sqrt((diff(x))^2+(diff(y))^2),0,pi)
算圆的周长.
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Calculus 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!