How can I plot x and y error bars and also calculate the equation of the line?

I simply have 6 sets of y values and 1 set of x values. The error in the x and y is constant. I would like to fit a straight line to the data to calculate the gradient for each line.

Asked:

on 28 Oct 2015

Answered:

on 28 Oct 2015

Community Treasure Hunt

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

Start Hunting!