Protect[s1, s2, ...]
sets the attribute Protected for the symbols .

Protect["form1", "form2", ...]
protects all symbols whose names match any of the string patterns .


  • Protect allows abbreviated string patterns containing the following metacharacters:
  • *zero or more characters
    @one or more characters, excluding uppercase letters
    \\*, etc.literal *, etc.
  • Protect["context`*"] protects all symbols in a particular context.
New in 1
New to Mathematica? Find your learning path »
Have a question? Ask support »