mp_table_class

mp_table_class()

mp_table_class() - Returns handle to constructor for table or mp_table.

Returns a handle to table constructor, if it is available, otherwise to mp_table constructor. Useful for table-based code that is compatible with both MATLAB (using native tables) and Octave (using mp_table or the table implementation from Tablicious, if available).

% Works in MATLAB or Octave, which does not (yet) natively support table().
table_class = mp_table_class();
T = table_class(var1, var2, ...);

See also table, mp_table.