Trace memory and disk separately

A mechanics experiment records a mass in kilograms and a force in newtons. Initially, rig.mat does not exist. All commands below execute successfully in the same workspace and folder.


MATLAB
mass_kg = 7;
force_N = 35;
save("rig.mat","mass_kg","force_N")
% Checkpoint 1
mass_kg = 11;
force_N = 55;
save("rig.mat","mass_kg","-append")
% Checkpoint 2
load("rig.mat","force_N")
% Checkpoint 3
save("rig.mat","force_N")
% Checkpoint 4


Complete the table at each checkpoint. Enter exact integers without units, or the word absent when the named variable is not stored in the indicated location.

CheckpointWorkspace mass (kg)Workspace force (N)File mass (kg)File force (N)
1
2
3
4

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Using Script Files and Managing Data Questions: