Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
2024.1.0 - English


table2matrix

convert a table into a matrix

Syntax

m = table2matrix(t)

Arguments

t

table object

m

double, boolean, string, datetime or duration matrix

Description

table2matrix converts a table into a matrix. m has the same size of t. The data of t must be homogeneous to convert them to a matrix. If t is a table with row names, then the data is lost.

Examples

m = table2matrix(t)

t = table([1; 4; 7], [2; 5; 8], [3; 6; 9])
m = table2matrix(t)

x = ["a"; "b"; "c"]
t.Properties.RowNames = x
m = table2matrix(t)

See also

  • table — create a table from variables
  • matrix2table — convert a matrix into a table

History

VersionDescription
2024.0.0 Introduction in Scilab.
Report an issue
<< table2cell Timeseries/Table table2struct >>

Copyright (c) 2022-2024 (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:
Mon Jun 17 17:49:22 CEST 2024