Azzera filtri
Azzera filtri

Sine curve fitting for the given data

6 visualizzazioni (ultimi 30 giorni)
I have a set of data,I need to fit the data to sine curve ..
Suggest a code..
Thanks

Risposta accettata

LUI PAUL
LUI PAUL il 31 Mar 2015
try this
cftool(data11(:,1),data11(:,2)); and follow the figure
<<
>>

Più risposte (1)

Andreas Goser
Andreas Goser il 31 Mar 2015
Modificato: Andreas Goser il 31 Mar 2015
"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 Commenti
Torsten
Torsten il 31 Mar 2015
Sorry, should read
[x,resnorm] = lsqcurvefit(myfun,x0,xdata,ydata);
Best wishes
Torsten.
Betha Shirisha
Betha Shirisha il 31 Mar 2015
@ 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

Accedi per commentare.

Categorie

Scopri di più su Get Started with Curve Fitting Toolbox in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by