Source: instructions

  • $ textmatlab to launch MATLAB
  • >> diary LAB<num>.text (e.g. diary LAB1.text) to log every REPL input and output
  • Follow lab PDF instructions
  • >> save: saves active variables
  • >> diary off: saves the log to file
  • >> exit
  • $ vim LAB<num>.text: remove errors, irrelevant code & output, intermediate saving/exit commands
  • $ submitm22al LAB<num>.text
  • Screenshot above command output for record.