plot - How to integrate best fit line in MatLab? -


i have various lists of points plotted , produce graphs this:

enter image description here

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

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -