quad函数积分维度不对。
9 views (last 30 days)
Show older comments
本人用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 Comments
Answers (0)
See Also
Categories
Find more on Calculus in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!