I am trying integration by trapz but I am geting NaN numbers in answer, How to solve this problem ?
Show older comments
I wrote command as follow, Total_Fuel_consumption=trapz(Vel.time,IFC)
What might be the reason of I am getting NaN Answer.
Answers (1)
Torsten
on 16 Oct 2015
0 votes
I would guess that there are NaN elements in Vel.time or IFC.
Best wishes
Torsten.
2 Comments
Prashant Todmal
on 16 Oct 2015
Torsten
on 16 Oct 2015
Why not just outputting the IFC array ?
I guess you'll immediately see this way what the problem is.
Best wishes
Torsten.
Categories
Find more on Numerical Integration and Differentiation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!