필터 지우기
필터 지우기

How to get mathematical function from cftool?

조회 수: 1 (최근 30일)
Avinash Prakash
Avinash Prakash 2016년 5월 18일
답변: Walter Roberson 2016년 5월 18일
I am using 'smoothing spline' for my data to obtain a fit using cftool. How do I get the mathematical function of the fit?

답변 (1개)

Walter Roberson
Walter Roberson 2016년 5월 18일
Under "Fit" use "Save to workspace" and use "Save fit to MATLAB object named" . You do not need the other two possible outputs for this purpose.
The fittedmodel output that generates has a property named "p" which is a piecewise polynomial structure such as is made by mkpp . You can use unmkpp to pull it apart, or you can just access its fields to gets its breaks and its coefficients.
computed splines are not often written out as mathematical functions because they become a whole mess of dirac deltas and heaviside functions. The boundary conditions are especially a nuisance as there are competing definitions of the value of HeaviSide(0)

카테고리

Help CenterFile Exchange에서 Interpolation에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by