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
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!