Refreshing dependent workspace values

An engineer uses pressure equal to force divided by area. Starting with an empty MATLAB base workspace, the engineer enters:


MATLAB
force_N = 96;
area_m2 = 0.012;
pressure_Pa = force_N/area_m2;
report_Pa = pressure_Pa;
force_N = 150;


Both pressure_Pa and report_Pa must now reflect the updated force of 150 N while retaining the area of 0.012 square metres. Which pair of commands achieves this when executed in the order shown?

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 The MATLAB Environment and Workspace Questions: