tablelen

Return the size of a table from an associated table-handle variable.


Synopsis

val = tablelen(table_handle)


Description

tablelen returns a float containing the integer size (length) of the table from the table_handle variable. table_handle is instantiated using the maketable scorefile command.


Arguments


Examples

   table = maketable("literal", "nonorm", 0, 8.00, 8.02, 8.03, 8.05, 8.07)
   size = tablelen(table)

size will have the value 5, corresponding to the 5 elements of the table. This is very useful when a size argument of 0 is used for a maketable(“literal”, …) table type.


See Also

maketable, modtable, makefilter, makeconverter, plottable, dumptable, tablelen, mul, div, sub, add, len