When displayed digits become new input

An engineer enters the following statements in MATLAB to inspect a sensor calibration factor. All quantities are dimensionless.


MATLAB
format short
gain = 65/256;
gain
format bank
gain


Immediately after the second display of gain, the engineer creates typed_gain by manually entering exactly the decimal number shown in that display. The engineer then executes:


MATLAB
scaled_original = 256*gain;
scaled_typed = 256*typed_gain;
difference = scaled_original - scaled_typed;


Complete the table. For the two displayed numbers, retain the decimal places shown by MATLAB. For the three stored calculation results, enter exact integers.

QuantityValue
First display of gain
Second display of gain
Stored scaled_original
Stored scaled_typed
Stored difference

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: