Translate a calibration formula correctly

A pressure sensor produces a reading of 6.8 V. Its calibration offset is 0.8 V and its scale is 0.4 V/kPa. The pressure calculation should subtract the offset from the reading before dividing by the scale:


p=reading−offsetscale.p=\frac{\text{reading}-\text{offset}}{\text{scale}}.


You enter the following commands in the MATLAB Command Window:


MATLAB
reading = 6.8;
offset = 0.8;
scale = 0.4;
pressure = reading - offset/scale;


Find the raw number stored in pressure by these commands and the pressure obtained after correcting the grouping. Report the raw stored number to one decimal place and the corrected pressure in kPa to one decimal place. MATLAB does not attach physical units to these numeric variables.

Your answers

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 Starting with MATLAB Questions: