This happens when you try to call a muPAD function from the MATLAB command line. Whenever you see :=
, that's a clue that you're dealing with muPAD. You cannot use muPAD syntax directly in MATLAB (feval
or evalin
and symengine
can be used in some cases to call muPAD functions and return a symbolic expression).
To use table
in muPAD:
Call mupad
at the command line to open up a muPAD notebook, then call your sample line. You do not need the latest MATLAB version, although I'm not sure exactly when it was brought in (works fine for me on 2011b with Symbolic toolbox).
To use table
in MATLAB:
The muPAD table function should not be confused with the MATLAB table function/datatype, which is relatively new. The equivalent in MATLAB of that muPAD code would be something along the lines of (untested):
T = table([13;47],'RowNames',{'a';'c'});