quad函数积分维度不对。

9 vues (au cours des 30 derniers jours)
N/A
N/A le 21 Nov 2022
本人用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)
算圆的周长.

Réponses (0)

Tags

Community Treasure Hunt

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

Start Hunting!