Least sq fit of strainght line

I have a histogram and i want to fit it with a function of form
y(x)= mx+c
how to do that...also after that i have to find the uncertainity

1 Comment

dpb
dpb on 17 Jul 2013
Edited: dpb on 20 Jul 2013
use polyfit
Actually, explain more fully what you're after fitting and how the histogram comes into it...do you have the underlying data or only the bins/counts?

Answers (0)

This question is closed.

Tags

Asked:

on 17 Jul 2013

Closed:

on 20 Aug 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!