Array Concatenation with Implicit Expansion

版本 1.1.2 (2.0 KB) 作者: Matt J
Versions of cat(), horzcat(), and vertcat() that support implicit expansion
21.0 次下载
更新时间 2024/8/16

查看许可证

This submission contains versions of cat(), horzcat(), and vertcat() that support implicit expansion. Here are some examples,
%EXAMPLE 1: Horizontal concatenation
>> C=ieHorz(ones(3), [3,5])
C =
1 1 1 3 5
1 1 1 3 5
1 1 1 3 5
%EXAMPLE 2: Vertical concatenation
>> C=ieVert(ones(3), [3;5])
C =
1 1 1
1 1 1
1 1 1
3 3 3
5 5 5
%EXAMPLE 3: General concatenation
>> C=ieCat(3, ones(3), [3;4;5])
C(:,:,1) =
1 1 1
1 1 1
1 1 1
C(:,:,2) =
3 3 3
4 4 4
5 5 5

引用格式

Matt J (2024). Array Concatenation with Implicit Expansion (https://www.mathworks.com/matlabcentral/fileexchange/136769-array-concatenation-with-implicit-expansion), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2021b
与 R2016b 及更高版本兼容
平台兼容性
Windows macOS Linux

Community Treasure Hunt

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

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

Small correction to help docs of ieHorz and ieVert

1.1.1

Description edit

1.1.0

Generalized to arbitrary arrays of objects (not just numeric arrays).

1.0.1

Description update

1.0.0