Asked by MatLab Code N
on 15 Jul 2019

Hi,

I have a dataset, attached herewith for your reference.

I want to plot the orthogonal distance regression line and get y=mx+c equation in the plot.

Thank you!

Answer by KSSV
on 15 Jul 2019

Accepted Answer

MatLab Code N
on 15 Jul 2019

Hi KSSV,

In the stackoverflow link, there are Edit 1 and Edit 2 following the section of the code you've used. If I use the edits mentioned in the link, the regression line becomes different. Do you have any idea about it.

Thanks

KSSV
on 15 Jul 2019

YOu use both...calculate the error....which ever gives you less error proceed with that.

MatLab Code N
on 15 Jul 2019

Sign in to comment.

Opportunities for recent engineering grads.

Apply Today
## 0 Comments

Sign in to comment.