필터 지우기
필터 지우기

converting non-linear function to multiple linear functions

조회 수: 8 (최근 30일)
Mehrdad
Mehrdad 2019년 6월 5일
댓글: Walter Roberson 2019년 6월 6일
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
Walter Roberson
Walter Roberson 2019년 6월 6일
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 2019년 6월 6일
Thank you so much.

댓글을 달려면 로그인하십시오.

답변 (1개)

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

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Get Started with Curve Fitting Toolbox에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by