Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

New to MATLAB?

Curve Fitting with error in the independent value

Asked by Christian Weber

Christian Weber

on 26 Jan 2013


I want to fit a curve to data, where the dependent and the independent variables both have errors. Usually Matlab assumes, that only the dependent variables have errors.

So my question is: Does Matlab offers methods to perform fits where both errors are taken into account?

My regards, Christian.


Christian Weber

Christian Weber


No products are associated with this question.

1 Answer

Answer by Shashank Prasanna

Shashank Prasanna

on 26 Jan 2013
Accepted answer

What you are referring to are a type of regression problems called error-in-variable models. They may go by other names depending on methods used.

MATLAB does not ship these methods as far as I know. However our friends at File Exchange has several submissions that may be exactly what you are looking for.

Here are few examples:

1 Comment

Christian Weber

Christian Weber

on 30 Jan 2013

Thank you so much!

This helps a lot.

Regards, Christian

Shashank Prasanna

Shashank Prasanna

Contact us