Linear Array Expansion

Version (627 Bytes) by ss32
Function to expand an array, linearly interpolating between entries


Updated 30 Jul 2017

View License

This function expands an array by linearly interpolating between each entry, filling in with a given number of steps defined by the user.

You have an array A=[1,5,2] and want to expand it with 3 data points between each original entry.
expandArray(A,3) = 1.0000 2.0000 3.0000 4.0000 5.0000 4.2500 3.5000 2.7500 2.0000

Cite As

ss32 (2023). Linear Array Expansion (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2016b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes