How to double integral in MATLAB
Afficher commentaires plus anciens
I want double integrate the following
a = 0.3555;
b = 0.3985;
n = 2.343;
f = @(x,y)(1-abs(x/(a*(1-abs(y/b).^n).^(1/n))).^1.745);
integral2(f,-0.3555,0.3985,-0.3555,0.3985)
but it did not work, anybody can help me on this? thanks
2 commentaires
Torsten
le 7 Oct 2016
Modifié(e) : Walter Roberson
le 7 Oct 2016
Use
f = @(x,y)(1-abs(x./(a*(1-abs(y/b).^n).^(1/n))).^1.745);
If this does not work either, please include the complete error message.
Best wishes
Torsten.
Walter Roberson
le 7 Oct 2016
The denominator of that is 0 at y = +/- b, which is going to lead to difficulties in integrating. The integral would perhaps be well-defined theoretically if you could well-define what it meant to raise a value to a floating point number.
Réponses (1)
Pritesh Shah
le 7 Oct 2016
0 votes
Try dblquad function
Catégories
En savoir plus sur Mathematics dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!