save, load

  • save <filename> <variable1> <variable2> ... or save(<'filename.mat'> <'variable1', 'variable2' ...>) saves the variables variable1, variable2, … to the file filename.mat
    • filename defaults to matlab
    • By default, every variable is saved
    • Append -append to the first form to add variables to an existing file instead of overwriting it
  • load <filename> <variable1> <variable2> ... or load(<'filename.mat'> <'variable1', 'variable2' ...>) loads with the same syntax