Monday, February 1, 2016

Mathematica: Clear all variables except one

To clear all variables except x, for example, then input the following

AppendTo[$ContextPath, "special`"];
special`x;

No comments:

Post a Comment