MATLAB: How to suppress the argument list for partial derivatives of functions in MuPAD in the output area

Symbolic Math Toolbox

Using diff in order to obtain partial derivatives, the output tends to get confusing as functions take several input arguments and those are displayed.
How can I get MuPAD to only display the function name, but not the input arguments?
For example, I want the following command
to output d/dx u rather than d/dx u(x,y)

Best Answer

  • You can achieve this via defining a function environment for u:
    [u:= () -> procname(args()):u:= funcenv(u, () -> hold( u ))
    yields the desired result.