How can I upgrade the multi variable integration?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hello. I'd like to integrate the multi variable equation as attached using trapezoidal integral.
So I made the code as attached abbreviated m-file and function.
However, in the original code I made, it takes too many time because I used many for-end structure.
I'm trying to reduce the calculation time, but it's too hard to me. Could you please help me or recommend any thing for that?
Many Thanks indeed, Best regard.
(I'm using MATLAB 2015a.)
0 Kommentare
Akzeptierte Antwort
Kuifeng
am 9 Apr. 2016
%see example of matlab, use double or triple trapz,
F = X.^2 + Y.^2;
I = trapz(y,trapz(x,F,2))
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Numerical Integration and Differentiation finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!