Clear Filters
Clear Filters

Piecewise Linear Curve fitting function?

5 views (last 30 days)
Bhekisizwe
Bhekisizwe on 10 Aug 2012
Hi there, i would like to know if there is an inbuilt Matlab function that curve fits data in a piecewise linear fashion and produces piecewise linear functions as the output?
Regards
  1 Comment
Star Strider
Star Strider on 10 Aug 2012
Edited: Star Strider on 11 Aug 2012
One option might be multiple linear regression with a matrix of independent variables and a matrix of the same size of dependent variables, fitting the same parameters vector to all of them. Is that what you want to do?
What are your data? How ‘piecewise’ are they? What information (other than the obvious parameter estimates and related statistics) do you want from the regression?

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!