-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. MATLAB合併陣列
- 4. matlab聯合單元陣列
- 5. 陣列組合的陣列
- 6. MATLAB基於某些列匹配的陣列組合
- 7. 列組合矩陣
- 8. Fortran陣列組合
- 9. 組合NumPy陣列
- 10. D3 - 組合陣列
- 11. Powershell - 組合陣列
- 12. matlab中的矩陣的所有組合
- 13. Matlab:如何組合不同的矩陣?
- 14. Matlab:二元矩陣的所有組合
- 15. Matlab - 矩陣陣列
- 16. 合併多個3D陣列matlab
- 17. MATLAB:任意數量的單元陣列的組合
- 18. matlab中兩列矩陣的所有組合
- 19. 陣列在Matlab
- 20. MATLAB,陣列
- 21. 陣列在Matlab
- 22. 在MATLAB陣列
- 23. 在Matlab中按行排列組合列
- 24. 如何組合陣列?
- 25. 組合多個陣列
- 26. 查找陣列組合
- 27. PHP陣列產品組合
- 28. 反向組合成陣列
- 29. ExtJS的組合框陣列
- 30. PHP-多維陣列組合