在 Matlab 中,为什么贝塞尔函数 j1(x) 的微分让我们说 x= 1:10 给出 9 个值而不是 10 个?
x=1:10
J = besselj(1,x)
d_J = diff(J)
x =
1 2 3 4 5 6 7 8 9 10
J =
Columns 1 through 7
0.4401 0.5767 0.3391 -0.0660 -0.3276 -0.2767 -0.0047
Columns 8 through 10
0.2346 0.2453 0.0435
d_J =
Columns 1 through 7
0.1367 -0.2377 -0.4051 -0.2615 0.0509 0.2720 0.2393
Columns 8 through 9
0.0107 -0.2018