MATLAB Answers

Orthogonal Distance Regression plot and regression equation

26 views (last 30 days)
MatLab Code N
MatLab Code N on 15 Jul 2019
Commented: 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!

  0 Comments

Sign in to comment.

Accepted Answer

KSSV
KSSV on 15 Jul 2019

  5 Comments

Show 2 older comments
MatLab Code N
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
KSSV on 15 Jul 2019
YOu use both...calculate the error....which ever gives you less error proceed with that.
MatLab Code N
MatLab Code N on 15 Jul 2019
What do you mean by that? Shouldn't there be a standard way of calulating the Orthogonal Distance Regression?

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!