Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.3.2 - Français

Change language to:
English - 日本語 - Português

Please note that the recommended version of Scilab is 2024.0.0. This page might be outdated.
See the recommended documentation of this function

Aide Scilab >> Fonctions Elémentaires > cell2mat


convert a cell array into a matrix

Calling Sequence




cell, the components of c must have the same type and can be scalars or matrices




Returns a matrix which is the concatenation of all components of the cell c.


all components of c must have the same data type (strings or doubles or integers or booleans). For each row iof c, cell2mat concatenates all the components of the ith row of the cell c

Note that if the components of the cell input care strings then cell2mat(c) returns a column vector of strings concatenation.


c=makecell([2,2],[1 2 3; 6 7 8],[4 5;9 10],[11 12;16 17],[14 13 15;18 19 20])

See Also

  • cell — Create a cell array of empty matrices.
<< cat Fonctions Elémentaires cellstr >>

Copyright (c) 2022-2023 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Thu May 12 11:44:50 CEST 2011