matlab拟合曲线后求导,高手留步:MATLAB五阶拟合函数,求导后离散化,输出结果是星号...

该楼层疑似违规已被系统折叠 隐藏此楼查看此楼

程序如下:

T=1978:1:2012;

t1=1978:1:2012;

五阶拟合函数是f5=0.0049664*T^5-49.4903*T^4+197266.7483*T^3-393146782.4823*T^2+391762509341.9921*T-156152262895446.5;

dc1=diff(0.0049664*T^5-49.4903*T^4+197266.7483*T^3-393146782.4823*T^2+391762509341.9921*T-156152262895446.5) %求导

dc2=(388*t1.^4)/15625-(6965140519951689*t1.^3)/35184372088832+(20334101580882327*t1.^2)/34359738368-(6595908489410563*t1)/8388608+6418636953059199/16384

%离散化

运行结果是:

dc1 =

(388*T^4)/15625 - (6965140519951689*T^3)/35184372088832 + (20334101580882327*T^2)/34359738368 - (6595908489410563*T)/8388608 + 6418636953059199/16384

dc2 =

Columns 1 through 6

* * * * * *

Columns 7 through 12

* * * * * *

Columns 13 through 18

* * * * * *

Columns 19 through 24

* * * * * *

Columns 25 through 30

* * * * * *

Columns 31 through 35

* * * * *

表情包
插入表情
评论将由博主筛选后显示,对所有人可见 | 还能输入1000个字符
相关推荐
©️2020 CSDN 皮肤主题: 深蓝海洋 设计师:CSDN官方博客 返回首页