Between numbers

Find values betwee original values in a vector
166 Downloads
Updated 1 Apr 2014

View License

Calculate the values between two values in any vector.
Use: v2 = intAB(v)
When v have n elements, v2 will have n-1 elements.
Example:
v = [1,2,3,4,5]
v2 = intAB(v)
v2 = [1.5,2.5,3.5,4.5]

Cite As

Håvard Falck (2024). Between numbers (https://www.mathworks.com/matlabcentral/fileexchange/46109-between-numbers), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2012b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Interpolation in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0