-3
A
回答
0
在八度
diff
(我suppouse Matlab的等效工作方式相同與任何其他基於Matlab /倍頻功能)
help diff
`diff' is a function from the file /usr/share/octave/3.2.4/m/general/diff.m
Function File: diff (X, K, DIM)
If X is a vector of length N, `diff (X)' is the vector of first
differences X(2) - X(1), ..., X(n) - X(n-1).
If X is a matrix, `diff (X)' is the matrix of column differences
along the first non-singleton dimension.
The second argument is optional. If supplied, `diff (X, K)',
where K is a non-negative integer, returns the K-th differences.
It is possible that K is larger than then first non-singleton
dimension of the matrix. In this case, `diff' continues to take
the differences along the next non-singleton dimension.
The dimension along which to take the difference can be explicitly
stated with the optional variable DIM. In this case the K-th
order differences are calculated along this dimension. In the
case where K exceeds `size (X, DIM)' then an empty matrix is
returned.
所以基本上,diff
幫助文檔返回與n - 1
條目的載體,發佈的代碼是創建一個新的數組在開始添加一個零,所以新的差異向量保持與輸入向量相同的大小(也許生成的向量將用於另一個假定計算的輸入向量長度的例程,但是如果沒有剩餘的代碼),希望它有幫助
相關問題
- 1. MATLAB - 矩陣組合
- 2. MATLAB:結合陣列
- 3. 陣列組合的陣列
- 4. MATLAB基於某些列匹配的陣列組合
- 5. Powershell - 組合陣列
- 6. Matlab:如何組合不同的矩陣?
- 7. Matlab - 矩陣陣列
- 8. MATLAB:任意數量的單元陣列的組合
- 9. MATLAB,陣列
- 10. 陣列在Matlab
- 11. 在MATLAB陣列
- 12. 陣列在Matlab
- 13. 在Matlab中按行排列組合列
- 14. 組合多個陣列
- 15. ExtJS的組合框陣列
- 16. php自己組合陣列
- 17. 查找陣列組合
- 18. 組合多個JSON陣列
- 19. foreach所陣列組合鍵
- 20. 陣列路徑組合
- 21. PHP陣列產品組合
- 22. MATLAB字符數組單元陣列
- 23. 循環陣列矩陣matlab
- 24. MATLAB解決陣列
- 25. MATLAB - 合併子矩陣
- 26. 組合兩個數組1個陣列
- 27. 迭代散列/陣列組合
- 28. MATLAB組合數據
- 29. 矩陣矩陣在Matlab中的數組?
- 30. 從另一個陣列生成有限組合的陣列