필터 지우기
필터 지우기

Error using the FIT function

조회 수: 5 (최근 30일)
Giuseppe Naselli
Giuseppe Naselli 2014년 1월 28일
편집: Giuseppe Naselli 2014년 1월 28일
Hi All,
I have y data as function of x, or y = f(x).
I want to use the FIT function inside a script
My aim is to smooth y using the Smoothing Spline method and leave matlab to choose the smoothing parameter (similar to the "Default" option when doing the same action but using the Curve Fitting Toolbox)
The code I wrote so far is
y_fit = fit(x,y,'smoothingspline');
y_smooth = feval(y_fit,x);
However, I am getting the following error
Error in cfit/subsref (line 16)
out = iParenthesesReference( obj, currsubs );
The error is given at the first line of my code shown above. Do you spot the mistake?
Thanks in advance
G

답변 (0개)

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by