Workspace values after interrupted execution

Before a MATLAB script runs, the base workspace contains work_J = 9 and status_code = 0. The name missing_distance_m is undefined: no variable or callable file with that name exists. The saved script contains:


MATLAB
force_N = 12;
work_J = force_N * missing_distance_m;
status_code = 1;


The entire script is run once with no error-handling code. Which statements describe the workspace after MATLAB reports the error? Select all that apply.

Choose an answer

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: