How can I suppress the argument list for partial derivatives of functions in MuPAD in the output area?
1 view (last 30 days)
Show older comments
MathWorks Support Team
on 28 Nov 2014
Answered: MathWorks Support Team
on 28 Nov 2014
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
[myfun:=u(x,y):diff(myfun,x)
to output d/dx u rather than d/dx u(x,y)
Accepted Answer
MathWorks Support Team
on 28 Nov 2014
You can achieve this via defining a function environment for u:
[u:= () -> procname(args()):u:= funcenv(u, () -> hold( u ))
[myfun:=u(x,y):diff(myfun,x)
yields the desired result.
0 Comments
More Answers (0)
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!