Import pressures with a missing reading

A pressure logger's measurement column has been imported into MATLAB as this string array:


MATLAB
pText = ["101.6"; "NA"; "102.8"; "100.4"];


The numeric entries are pressures in kPa. The logger documentation defines NA as a missing reading. Calculate the arithmetic mean of the available readings, excluding the missing entry. Give your answer in Pa, to one decimal place.

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 Data Files and Character Strings Questions: