Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

equation fitting and plotting

1 Ansicht (letzte 30 Tage)
aditi
aditi am 23 Jan. 2014
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
I have 5 x axis values and 5 y axis values..
now i want to fit the equation
f(x)=a*(x^b - 2^b)
after that i have to plot the 5 data points which i did like plot(x,y)
now i have to plot my fitted function also on the same plot and it should be a smooth curve.
please help me..

Antworten (1)

David Sanchez
David Sanchez am 23 Jan. 2014
Did you consider the use of curve fitting tool?
cftool
On the command window, type:
doc cftool
You'll be given some examples similar to your problem.
  3 Kommentare
David Sanchez
David Sanchez am 23 Jan. 2014
the fitting function are part of the curve fitting tool. If you don't have it, you have to code the fitting algorithm yourself.
aditi
aditi am 23 Jan. 2014
when i am using cftool it is fitting fine but giving totally wrong values of the parameters

Diese Frage ist geschlossen.

Community Treasure Hunt

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

Start Hunting!

Translated by