Info
此问题已关闭。 请重新打开它进行编辑或回答。
equation fitting and plotting
1 次查看(过去 30 天)
显示 更早的评论
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..
0 个评论
回答(1 个)
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
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.
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!