问答题

计算向量x的一阶向前差分,可以使用的命令有(      )。
A、diff(x)
B、diff(x,1)
C、diff(x,1,2)
D、a=x(1:end-1);b=x(2:end);b-a

答案: diff(x)diff(x,1)diff(x,1,2)
微信扫码免费搜题