Initialization across repeated runs

A laboratory technician compares two MATLAB scripts that update a recorded liquid volume. Script A contains:


MATLAB
volume_mL = volume_mL + 25;


Script B contains:


MATLAB
volume_mL = 100;
volume_mL = volume_mL + 25;


For each script, start a separate trial with volume_mL equal to 100. Run that entire script twice, without changing variables between its runs. Reset the starting value to 100 before beginning the other script's trial.


Complete the table with the value of volume_mL after each run. Enter exact integers in millilitres.

Completed runScript A volume (mL)Script B volume (mL)
First
Second

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 Script Files Questions: