rdiff: ratios a la diff
Version 1.0.0.0 (1.17 KB) by
Peter Mao
Calculates the ratios of consecutive elements in an array
Essentially, this is the built-in DIFF with subtraction replaced by division.
The sign is preserved for one iteration. I have not checked for it's validity with multiple rdiff's, so a warning is printed for iteration > 1.
Cite As
Peter Mao (2026). rdiff: ratios a la diff (https://in.mathworks.com/matlabcentral/fileexchange/59155-rdiff-ratios-a-la-diff), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2014b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Language Fundamentals > Operators and Elementary Operations > Logical (Boolean) Operations >
Find more on Logical (Boolean) Operations in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
