Howe can I subtract neighboring numbers?
1 回表示 (過去 30 日間)
古いコメントを表示
Hello,
I got a matrix like this:
>> z=[1,2,3,4]
z =
1 2 3 4
How can I substract the neighboring numbers?
Like 2-1; 3-2; 4-3; etc.
And how can I divide every number by 60 ?
Like 1/60 2/60 etc
0 件のコメント
採用された回答
Andrei Bobrov
2019 年 7 月 7 日
diff(z)
z/60
5 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Creating and Concatenating Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!