interweave

This function interweaves (alternates/overlaps) the columns of equal-sized matrices A,B,C...

You are now following this Submission

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 (2026). interweave (https://www.mathworks.com/matlabcentral/fileexchange/18507-interweave), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.2.0.0

Added the tag 'overlap'

1.0.0.0

Change category to 'Matrix Manipulation'