Area under distribution fit curve
Show older comments
I used Statistics and Machine Learning add on to help me create a fit for my data. However, i now need to find the area under the fitted curve, and i am unable to use trapz(X,Y) since i do not have any variables and my data is a 261345x1 data set. Please advise!
Accepted Answer
More Answers (1)
KSSV
on 6 Sep 2021
Let Y be your 261345x1 data.
X = (1:length(Y))' ;
trapz(X,Y)
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!