matlab,如何用差分法求dy/dx用差分法(可以是向后差分法,也可以是向前差分法,或是中心差分法)来求dy/dx?有好的答案的话追加50分!原始数据如下,第一列是X,第二列是Y.0.1000E+01 0.8379E+010.2000E+01 0
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/27 12:41:17
matlab,如何用差分法求dy/dx用差分法(可以是向后差分法,也可以是向前差分法,或是中心差分法)来求dy/dx?有好的答案的话追加50分!原始数据如下,第一列是X,第二列是Y.0.1000E+01 0.8379E+010.2000E+01 0
matlab,如何用差分法求dy/dx
用差分法(可以是向后差分法,也可以是向前差分法,或是中心差分法)来求dy/dx?有好的答案的话追加50分!原始数据如下,第一列是X,第二列是Y.
0.1000E+01 0.8379E+01
0.2000E+01 0.1319E+02
0.3000E+01 0.1749E+02
0.4000E+01 0.2224E+02
0.5000E+01 0.2072E+02
0.6000E+01 0.2551E+02
0.7000E+01 0.2509E+02
0.8000E+01 0.2826E+02
0.9000E+01 0.2812E+02
0.1000E+02 0.2954E+02
0.1100E+02 0.3261E+02
0.1200E+02 0.3353E+02
0.1300E+02 0.3540E+02
0.1400E+02 0.3983E+02
0.1500E+02 0.3891E+02
0.1600E+02 0.4133E+02
0.1700E+02 0.4196E+02
0.1800E+02 0.4376E+02
0.1900E+02 0.4499E+02
0.2000E+02 0.4634E+02
0.2100E+02 0.4409E+02
0.2200E+02 0.4753E+02
0.2300E+02 0.4703E+02
0.2400E+02 0.4822E+02
0.2500E+02 0.5209E+02
0.2600E+02 0.5109E+02
0.2700E+02 0.5147E+02
0.2800E+02 0.5345E+02
0.2900E+02 0.5528E+02
0.3000E+02 0.5693E+02
0.3100E+02 0.5753E+02
0.3200E+02 0.5840E+02
0.3300E+02 0.5832E+02
0.3400E+02 0.5960E+02
0.3500E+02 0.5957E+02
0.3600E+02 0.5945E+02
0.3700E+02 0.6011E+02
0.3800E+02 0.6015E+02
0.3900E+02 0.6408E+02
0.4000E+02 0.6283E+02
0.4100E+02 0.6385E+02
0.4200E+02 0.6720E+02
0.4300E+02 0.6371E+02
0.4400E+02 0.6490E+02
0.4500E+02 0.6937E+02
0.4600E+02 0.6901E+02
0.4700E+02 0.6810E+02
0.4800E+02 0.7068E+02
0.4900E+02 0.7129E+02
0.5000E+02 0.7299E+02
0.5100E+02 0.6905E+02
0.5200E+02 0.7120E+02
0.5300E+02 0.7409E+02
0.5400E+02 0.7220E+02
0.5500E+02 0.7461E+02
0.5600E+02 0.7255E+02
0.5700E+02 0.7778E+02
0.5800E+02 0.7525E+02
0.5900E+02 0.7461E+02
0.6000E+02 0.7717E+02
0.6100E+02 0.8018E+02
0.6200E+02 0.7910E+02
0.6300E+02 0.7747E+02
0.6400E+02 0.8035E+02
0.6500E+02 0.7938E+02
0.6600E+02 0.8122E+02
0.6700E+02 0.8054E+02
0.6800E+02 0.8235E+02
0.6900E+02 0.8260E+02
0.7000E+02 0.8553E+02
0.7100E+02 0.8390E+02
0.7200E+02 0.8414E+02
0.7300E+02 0.8485E+02
0.7400E+02 0.8374E+02
0.7500E+02 0.8491E+02
0.7600E+02 0.8729E+02
0.7700E+02 0.8873E+02
0.7800E+02 0.8630E+02
0.7900E+02 0.8839E+02
0.8000E+02 0.9081E+02
0.8100E+02 0.8872E+02
0.8200E+02 0.8977E+02
0.8300E+02 0.8975E+02
0.8400E+02 0.9064E+02
0.8500E+02 0.9122E+02
0.8600E+02 0.9467E+02
0.8700E+02 0.9096E+02
0.8800E+02 0.9456E+02
0.8900E+02 0.9383E+02
0.9000E+02 0.9575E+02
0.9100E+02 0.9656E+02
0.9200E+02 0.9811E+02
0.9300E+02 0.9510E+02
0.9400E+02 0.9865E+02
0.9500E+02 0.9980E+02
0.9600E+02 0.9937E+02
0.9700E+02 0.9815E+02
0.9800E+02 0.9987E+02
0.9900E+02 0.1010E+03
0.1000E+03 0.9829E+02
matlab,如何用差分法求dy/dx用差分法(可以是向后差分法,也可以是向前差分法,或是中心差分法)来求dy/dx?有好的答案的话追加50分!原始数据如下,第一列是X,第二列是Y.0.1000E+01 0.8379E+010.2000E+01 0
data=[
0.1000E+01 0.8379E+01
0.2000E+01 0.1319E+02
0.3000E+01 0.1749E+02
0.4000E+01 0.2224E+02
0.5000E+01 0.2072E+02
0.6000E+01 0.2551E+02
0.7000E+01 0.2509E+02
0.8000E+01 0.2826E+02
0.9000E+01 0.2812E+02
0.1000E+02 0.2954E+02
0.1100E+02 0.3261E+02
0.1200E+02 0.3353E+02
0.1300E+02 0.3540E+02
0.1400E+02 0.3983E+02
0.1500E+02 0.3891E+02
0.1600E+02 0.4133E+02
0.1700E+02 0.4196E+02
0.1800E+02 0.4376E+02
0.1900E+02 0.4499E+02
0.2000E+02 0.4634E+02
0.2100E+02 0.4409E+02
0.2200E+02 0.4753E+02
0.2300E+02 0.4703E+02
0.2400E+02 0.4822E+02
0.2500E+02 0.5209E+02
0.2600E+02 0.5109E+02
0.2700E+02 0.5147E+02
0.2800E+02 0.5345E+02
0.2900E+02 0.5528E+02
0.3000E+02 0.5693E+02
0.3100E+02 0.5753E+02
0.3200E+02 0.5840E+02
0.3300E+02 0.5832E+02
0.3400E+02 0.5960E+02
0.3500E+02 0.5957E+02
0.3600E+02 0.5945E+02
0.3700E+02 0.6011E+02
0.3800E+02 0.6015E+02
0.3900E+02 0.6408E+02
0.4000E+02 0.6283E+02
0.4100E+02 0.6385E+02
0.4200E+02 0.6720E+02
0.4300E+02 0.6371E+02
0.4400E+02 0.6490E+02
0.4500E+02 0.6937E+02
0.4600E+02 0.6901E+02
0.4700E+02 0.6810E+02
0.4800E+02 0.7068E+02
0.4900E+02 0.7129E+02
0.5000E+02 0.7299E+02
0.5100E+02 0.6905E+02
0.5200E+02 0.7120E+02
0.5300E+02 0.7409E+02
0.5400E+02 0.7220E+02
0.5500E+02 0.7461E+02
0.5600E+02 0.7255E+02
0.5700E+02 0.7778E+02
0.5800E+02 0.7525E+02
0.5900E+02 0.7461E+02
0.6000E+02 0.7717E+02
0.6100E+02 0.8018E+02
0.6200E+02 0.7910E+02
0.6300E+02 0.7747E+02
0.6400E+02 0.8035E+02
0.6500E+02 0.7938E+02
0.6600E+02 0.8122E+02
0.6700E+02 0.8054E+02
0.6800E+02 0.8235E+02
0.6900E+02 0.8260E+02
0.7000E+02 0.8553E+02
0.7100E+02 0.8390E+02
0.7200E+02 0.8414E+02
0.7300E+02 0.8485E+02
0.7400E+02 0.8374E+02
0.7500E+02 0.8491E+02
0.7600E+02 0.8729E+02
0.7700E+02 0.8873E+02
0.7800E+02 0.8630E+02
0.7900E+02 0.8839E+02
0.8000E+02 0.9081E+02
0.8100E+02 0.8872E+02
0.8200E+02 0.8977E+02
0.8300E+02 0.8975E+02
0.8400E+02 0.9064E+02
0.8500E+02 0.9122E+02
0.8600E+02 0.9467E+02
0.8700E+02 0.9096E+02
0.8800E+02 0.9456E+02
0.8900E+02 0.9383E+02
0.9000E+02 0.9575E+02
0.9100E+02 0.9656E+02
0.9200E+02 0.9811E+02
0.9300E+02 0.9510E+02
0.9400E+02 0.9865E+02
0.9500E+02 0.9980E+02
0.9600E+02 0.9937E+02
0.9700E+02 0.9815E+02
0.9800E+02 0.9987E+02
0.9900E+02 0.1010E+03
0.1000E+03 0.9829E+02
];
x=data(:,1);
y=data(:,2);
dydx=diff(y)./diff(x)