matlab求二阶导数1.2000000000E+000 1.4497632190E+0001.2200000000E+000 1.4497199175E+0001.2400000000E+000 1.4496764225E+0001.2600000000E+000 1.4496327454E+0001.2800000000E+000 1.4495888976E+0001.3000000000E+000 1.4495448891E+000求右边数据对

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/19 17:17:13
matlab求二阶导数1.2000000000E+0001.4497632190E+0001.2200000000E+0001.4497199175E+0001.2400000000E+0001.44

matlab求二阶导数1.2000000000E+000 1.4497632190E+0001.2200000000E+000 1.4497199175E+0001.2400000000E+000 1.4496764225E+0001.2600000000E+000 1.4496327454E+0001.2800000000E+000 1.4495888976E+0001.3000000000E+000 1.4495448891E+000求右边数据对
matlab求二阶导数
1.2000000000E+000 1.4497632190E+000
1.2200000000E+000 1.4497199175E+000
1.2400000000E+000 1.4496764225E+000
1.2600000000E+000 1.4496327454E+000
1.2800000000E+000 1.4495888976E+000
1.3000000000E+000 1.4495448891E+000
求右边数据对左边数据的二阶导数(不是作图,是求出每个点的对应的值),用textread[c1 c2] =textread('sample.txt','%f%f');

matlab求二阶导数1.2000000000E+000 1.4497632190E+0001.2200000000E+000 1.4497199175E+0001.2400000000E+000 1.4496764225E+0001.2600000000E+000 1.4496327454E+0001.2800000000E+000 1.4495888976E+0001.3000000000E+000 1.4495448891E+000求右边数据对
假设对y=f(x)等间隔采样,采样间隔为h,得到一系列数据点(xi,yi),则函数的n阶导数为
diff(y,n)/h^n.
所以就是diff(c2,2)/0.02^2

就是这样啊,你说哪里错了