x=1.25:1.25:10; y=[49.03,122.58,245.18,328.33,304.01,245.17,155.44,101.99]如何用matlab指数拟合?

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/22 21:21:09
x=1.25:1.25:10;y=[49.03,122.58,245.18,328.33,304.01,245.17,155.44,101.99]如何用matlab指数拟合?x=1.25:1.25:1

x=1.25:1.25:10; y=[49.03,122.58,245.18,328.33,304.01,245.17,155.44,101.99]如何用matlab指数拟合?
x=1.25:1.25:10; y=[49.03,122.58,245.18,328.33,304.01,245.17,155.44,101.99]如何用matlab指数拟合?

x=1.25:1.25:10; y=[49.03,122.58,245.18,328.33,304.01,245.17,155.44,101.99]如何用matlab指数拟合?
可以先取对数,化简为多项式,如一次的就用,
ln(y)=a*x+b去拟合,
拟合后在还原就是:
y=exp(ax+b);
或y=exp(ax)+b
对于非多项式的其它函数,处理时都是按照这种方法处理的,
因为任何有理函数都可以变成多项式的形式.