plot - How to integrate best fit line in MatLab? -
i have various lists of points plotted , produce graphs this:
is there way integrate on best fit line area under curve?
yes, can use trapz
integrate on set of discrete data: http://www.mathworks.com/help/matlab/math/integration-of-numeric-data.html
assuming x-axes data saved vector t
, , best fit line data saved fx
, area calculated like:
area = trapz(t, fx);
Comments
Post a Comment