- Manuel Scilab
- Fonctions Elémentaires
- Mathématiques discrètes
- Virgule flottante
- Représentation d'entier
- Trigonométrie
- abs
- amell
- and
- &
- cumprod
- cumsum
- delip
- diag
- exp
- eye
- gsort
- imag
- intersect
- inttrap
- isdef
- isreal
- kron
- lex_sort
- linspace
- log
- log10
- log2
- logm
- logspace
- lstsize
- max
- meshgrid
- min
- modulo
- norm
- ones
- or
- |
- pen2ea
- prod
- rand
- real
- resize_matrix
- sign
- signm
- size
- solve
- sqrt
- sqrtm
- squarewave
- sum
- syslin
- toeplitz
- trianfml
- tril
- trisolve
- triu
- union
- unique
- zeros
- binomial
- bitand
- bitor
- bloc2exp
- bloc2ss
- cat
- cell2mat
- cellstr
- char
- diff
- dsearch
- flipdim
- imult
- ind2sub
- isempty
- isequal
- isequalbitwise
- isvector
- log1p
- ndgrid
- ndims
- nextpow2
- permute
- pertrans
- setdiff
- ssrand
- sub2ind
- sysconv
- sysdiag
- trfmod
- typeof
- vectorfind
Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function
cat
concatenate several arrays
Calling Sequence
y=cat(dims,A1,A2,...,An)
Arguments
- dims
a positive real scalar.
- A1,A2,..An
scalars, vectors, matrices or mutlti-arrays, or cells arrays. A1,A2,...,An must have the same size (excluding the dimension number dims). size(A1,i)=size(A2,i)=...=size(An,i) for i different of dims and size(A1,dims), size(A2,dims),...,size(An,dims) can be different.
- y
a scalar, vector, matrix or mutlti-array, y has the same type than A1,A2,...,An.
Description
y=cat(dims,A1,A2,...,An) :
y is the result of the
concatenation of the input arguments A1,A2,...,An. if dims=1then the
concatenation is done according to the rows : if dims=2 then concatenation
is done according to the columns of the input arguments,...
if dims=1, then the concatenation is done according to the rows
A1=[1 2 3 ; 4 5 6]; A2=[7 8 9 ; 10 11 12]; y=cat(1,A1,A2) => y=[1 2 3 ; 4 5 61 ;7 8 9; 10 11 12]
if dims=2, then the concatenation is done according to the columns of the input arguments
A1=[1 2 3;4 5 6]; A2=[7 8 9 ;10 11 12]; y=cat(2,A1,A2) => y=[1 2 3 7 8 9 ; 4 5 6 10 11 12]
Examples
// first example : concatenation according to the rows dims=1; A1=[1 2 3]; A2=[4 5 6 ; 7 8 9]; A3=[10 11 12]; y=cat(dims,A1,A2,A3) // second example : concatenation according to the columns dims=2; A1=[1 2 3]'; A2=[4 5;7 8;9 10]; y=cat(dims,A1,A2) // third example : concatenation according to the 3th dimension dims=3; A1=matrix(1:12,[2,2,3]); A2=[13 14;15 16]; A3=matrix(21:36,[2,2,4]); y=cat(dims,A1,A2,A3)
Authors
Farid Belahcene
<< bloc2ss | Fonctions Elémentaires | cell2mat >> |