Difference between consecutive cells?
이전 댓글 표시
I am new with Matlab, I want to find the difference between consecutive cells in a column from a text file and print it into a table to summarize. I want to print all the rows/cells that consecutively has 0.1 difference for 11 times. Help! Thankyou!
댓글 수: 2
Mariel Freo
2017년 2월 18일
dpb
2017년 2월 18일
I massively edited the question -- use the body to ask the question; the title as a title only. That much data shouldn't be inline but as an attachment.
답변 (1개)
dpb
2017년 2월 19일
Start with
doc ismembertol
If you try
dx=diff(x)==0;
you'll find not many actually are identically 0 but instead are some N*eps removed owing to floating point storage not being "roundable" at precisely decimal digits of precision.
카테고리
도움말 센터 및 File Exchange에서 Data Type Conversion에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!