<< table2cell Timeseries/Table table2struct >>

Scilab Help >> Электронная таблица > Timeseries/Table > table2matrix

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

History

VersionDescription
2024.0.0 Introduction in Scilab.

Report an issue
<< table2cell Timeseries/Table table2struct >>