Scilab 5.3.1
- Scilab help
- Elementary Functions
- Bitwise operations
- Discrete mathematics
- Elementary matrices
- Floating point
- Integer representation
- Matrix manipulation
- Matrix operations
- Search and sort
- Set operations
- Signal processing
- Symbolic
- Trigonometry
- abs
- amell
- and
- &
- cat
- cell2mat
- cellstr
- char
- delip
- diff
- exp
- imag
- imult
- inttrap
- isdef
- isempty
- isequal
- isequalbitwise
- isreal
- isvector
- log
- log10
- log1p
- log2
- logm
- lstsize
- max
- min
- modulo
- ndims
- norm
- or
- |
- pertrans
- real
- sign
- signm
- size
- sqrt
- sqrtm
- squarewave
- toeplitz
- typeof
Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function
cell2mat
convert a cell array into a matrix
Calling Sequence
x=cell2mat(c)
Arguments
- c
cell, the components of c must have the same type and can be scalars or matrices
- x
matrix
Description
Returns a matrix which is the concatenation of all components of the cell c.
- cell2mat(c)
all components of c must have the same data type (strings or doubles or integers or booleans). For each row
i
ofc,
cell2mat
concatenates all the components of theith
row of the cellc
Note that if the components of the cell input care strings then
cell2mat(c)
returns a column
vector of strings concatenation.
Examples
c=makecell([2,2],[1 2 3; 6 7 8],[4 5;9 10],[11 12;16 17],[14 13 15;18 19 20]) cell2mat(c)
See Also
- cell — Create a cell array of empty matrices.
<< cat | Elementary Functions | cellstr >> |