table.empty
table: tbl = table.empty ()
table: tbl = table.empty (n)
table: tbl = table.empty (r, v)
table: tbl = table.empty (sz)
Create an empty table.
tbl = table.empty () returns a 0-by-0 table.
tbl = table.empty (r, v) returns a table with
r rows and v variables, at least one of which must be
zero. A table with rows but no variables keeps its height, so
table.empty (5, 0) answers 5 to height. A table with
variables but no rows names them Var1 to VarN and
gives each of them a double value, exactly as
table ( does.
'Size', …)
tbl = table.empty (sz) takes the two dimensions
from the two-element vector sz, and table.empty (n)
is the same as table.empty (n, n).
See also: table, isempty, height, width
Source Code: table