out =
tblish.evalWithTableVars (tbl, expr)
¶Evaluate an expression against a table array’s variables.
Evaluates the M-code expression expr in a workspace where all of tbl’s variables have been assigned to workspace variables.
expr is a charvec containing an Octave expression.
As an implementation detail, the workspace will also contain some variables that are prefixed and suffixed with "__". So try to avoid those in your table variable names.
Returns the result of the evaluation.
Examples:
[s,p,sp] = tblish.examples.SpDb tmp = join (sp, p); shipment_weight = tblish.evalWithTableVars (tmp, "Qty .* Weight")
See also: table.restrict