Sine curve fitting for the given data

조회 수: 10 (최근 30일)
Betha Shirisha
Betha Shirisha 2015년 3월 31일
댓글: Betha Shirisha 2015년 3월 31일
I have a set of data,I need to fit the data to sine curve ..
Suggest a code..
Thanks

채택된 답변

LUI PAUL
LUI PAUL 2015년 3월 31일
try this
cftool(data11(:,1),data11(:,2)); and follow the figure
<<
>>

추가 답변 (1개)

Andreas Goser
Andreas Goser 2015년 3월 31일
편집: Andreas Goser 2015년 3월 31일
"Suggest a code"...
Well, anyway, let us know if you have the Curve Fitting Tbx or Optimization Tbx available (output of 'ver' command) and provide a sample of data like 20 data points and then we can suggest an approach for you to code.
  댓글 수: 4
Torsten
Torsten 2015년 3월 31일
Sorry, should read
[x,resnorm] = lsqcurvefit(myfun,x0,xdata,ydata);
Best wishes
Torsten.
Betha Shirisha
Betha Shirisha 2015년 3월 31일
@ Torsten The below messsage is displayed on the command window
lsqcurvefit stopped because the final change in the sum of squares relative to its initial value is less than the default value of the function tolerance

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

카테고리

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