how to curve fiting

2 次查看(过去 30 天)
afrah aziz
afrah aziz 2020-12-15
How can I enter data into a script to do curve fitting?

回答(1 个)

KALYAN ACHARJYA
KALYAN ACHARJYA 2020-12-16
There is no description about the question. So I considered it as a sample example
x=(1:20)'; % Example Make column data
y=log(x);
fit_data=fit(x,y,'poly2')
plot(fit_data,x,y);
More details, please see fit

类别

Help CenterFile Exchange 中查找有关 Get Started with Curve Fitting Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by