How to avoid NaN when summing up vectors?
8 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi,
Im trying to make some discrete integrals using trapz or even just using riemann sums, but I cant avoid getting NaN as a result. And the vector Im trying to integrate has no NaN values... Matlab can plot it perfectly without problems, values are well bounded but just cant sum up the total value.
Any help?
0 Kommentare
Akzeptierte Antwort
Sean de Wolski
am 1 Dez. 2011
You could use isnan to find the nans and delete them or interpolate over them.
Weitere Antworten (1)
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!