Save

Save["filename", symbol]
appends definitions associated with the specified symbol to a file.

Save["filename", "form"]
appends definitions associated with all symbols whose names match the string pattern .

Save["filename", "context`"]
appends definitions associated with all symbols in the specified context.

Save["filename", {object1, object2, ...}]
appends definitions associated with several objects.

DetailsDetails

  • Save uses FullDefinition to include subsidiary definitions.
  • Save writes out definitions in InputForm.
  • Save uses Names to find symbols whose names match a given string pattern.
  • You can use Save["filename", "s"] to write out the definition for the value of a symbol s itself.
New in 1 | Last modified in 3
New to Mathematica? Find your learning path »
Have a question? Ask support »