quad函数积分维度不对。

9 次查看(过去 30 天)
N/A
N/A 2022-11-21
本人用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 个)

类别

Help CenterFile Exchange 中查找有关 Calculus 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!