Array Concatenation with Implicit Expansion

Version 1.1.1 (2 ko) par Matt J
Versions of cat(), horzcat(), and vertcat() that support implicit expansion
15 téléchargements
Mise à jour 20 oct. 2023

Afficher la licence

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

Citation pour cette source

Matt J (2024). Array Concatenation with Implicit Expansion (https://www.mathworks.com/matlabcentral/fileexchange/136769-array-concatenation-with-implicit-expansion), MATLAB Central File Exchange. Récupéré le .

Compatibilité avec les versions de MATLAB
Créé avec R2021b
Compatible avec les versions R2016b et ultérieures
Plateformes compatibles
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Publié le Notes de version
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