quad函数积分维度不对。
9 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
本人用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 commentaires
Réponses (0)
Voir également
Catégories
En savoir plus sur Calculus dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!