bsxcat(dim, varargin)
版本 1.1.0.0 (1.9 KB) 作者:
Bruno Luong
Concatenate two arrays along a specific dimension with auto expansion of singleton enabled.
Examples:
Insert the zeros-row on top of 3x3 matrix
M = magic(3)
bsxcat(1,0,M)
Concatenate the ones-column on right of 3x3 matrix
M = magic(3)
bsxcat(2,M,1)
引用格式
Bruno Luong (2024). bsxcat(dim, varargin) (https://www.mathworks.com/matlabcentral/fileexchange/32681-bsxcat-dim-varargin), MATLAB Central File Exchange. 检索来源 .
MATLAB 版本兼容性
创建方式
R2011a
兼容任何版本
平台兼容性
Windows macOS Linux类别
在 Help Center 和 MATLAB Answers 中查找有关 Creating and Concatenating Matrices 的更多信息
标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!