Info

この質問は閉じられています。 編集または回答するには再度開いてください。

equation fitting and plotting

1 回表示 (過去 30 日間)
aditi
aditi 2014 年 1 月 23 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
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..

回答 (1 件)

David Sanchez
David Sanchez 2014 年 1 月 23 日
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 件のコメント
David Sanchez
David Sanchez 2014 年 1 月 23 日
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 2014 年 1 月 23 日
when i am using cftool it is fitting fine but giving totally wrong values of the parameters

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by