interweave

This function interweaves (alternates/overlaps) the columns of equal-sized matrices A,B,C...
1.1K Downloads
Updated 24 Jan 2009

View License

The first column of the output is the first column of A.
The second column of the output is the first column of B, followed by C etc.
Then the second columns of A,B,C...
The final column of the output is the final column of the last input matrix.

Example: A = ones(3); B = ones(3)*2;
C = ones(3)*3; D = interweave(A,B,C)

Cite As

John T. McCarthy (2024). interweave (https://www.mathworks.com/matlabcentral/fileexchange/18507-interweave), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2006a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Resizing and Reshaping Matrices 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.2.0.0

Added the tag 'overlap'

1.0.0.0

Change category to 'Matrix Manipulation'