Integrals function computing accelerating
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi Guys ,
- trapz
- cumtrapz
function int = Fcn_integ(x,k,dt)
x ... Signal to integration
k ... Number of integrations to be undertaken
dt ... Sampling of the signal to integration
I have implemented the above function for integration. Then I want to know it is possible to use the built-in integration function e.g., cumtrapz for this issue?Can it be helpful? Is this built-in function more optimal? By the length of x to 2500 , I have the total time around 0.642 second. Thanks in advance
1 commentaire
Jan
le 18 Juil 2012
How could we compare TRAPZ with your function, without knowing your function?
"More optimal" is not possible: Optimal is optimal already. "More efficient" or "faster" are more correct.
Réponses (1)
Jan
le 18 Juil 2012
The best idea is to try it. While our suggestion will be pure speculation, because we do not know your function, you have all required data and programs to check this by your own.
Voir également
Catégories
En savoir plus sur Numerical Integration and Differentiation 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!