interweave

版本 1.2.0.0 (1.3 KB) 作者: John T. McCarthy
This function interweaves (alternates/overlaps) the columns of equal-sized matrices A,B,C...
1.1K 次下载
更新时间 2009/1/24

查看许可证

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)

引用格式

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

MATLAB 版本兼容性
创建方式 R2006a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Resizing and Reshaping Matrices 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.2.0.0

Added the tag 'overlap'

1.0.0.0

Change category to 'Matrix Manipulation'