Borrar filtros
Borrar filtros

converting non-linear function to multiple linear functions

8 visualizaciones (últimos 30 días)
Mehrdad
Mehrdad el 5 de Jun. de 2019
Comentada: Walter Roberson el 6 de Jun. de 2019
Hello
I need to convert a non-linear function to multiple linear functions with "ax+b" format so then i can use one of them according to the amount of x and calculate the output of original function with an acceptable approximation. is there any things that do this with optimum number of equations automatically? i tried curve fitting app but i couldn't find such a thing.
thanks
  4 comentarios
Walter Roberson
Walter Roberson el 6 de Jun. de 2019
https://www.mathworks.com/matlabcentral/answers/340002-piecewise-polynomial-fitting-for-data
https://www.mathworks.com/help/curvefit/smoothing-splines.html
https://blogs.mathworks.com/loren/2008/08/25/piecewise-linear-interpolation/
Mehrdad
Mehrdad el 6 de Jun. de 2019
Thank you so much.

Iniciar sesión para comentar.

Respuestas (1)

PIYUSH AGGARWAL
PIYUSH AGGARWAL el 6 de Jun. de 2019
Hi,
Try the examples for factorizing polynomial using factor method on documentation page
Hope this works for you :)
  1 comentario
Walter Roberson
Walter Roberson el 6 de Jun. de 2019
This has an unrelated purpose. The user has a nonlinear function that they want to approximate in sections with straight lines.

Iniciar sesión para comentar.

Categorías

Más información sobre Get Started with Curve Fitting Toolbox en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by