Question: Please provide the correct matlab code using the given formula for the following exercise. For practice, let the data for patients ages and temperatures be
The file patient_temps.mat contains a variable called age_temps. The first column of this variable contains patients' ages, and the second column contains their body temperatures. Each row represents a different patient. By mistake, some of the temperatures were recorded in Fahrenheit and some in Celsius. Write MATLAB code to load in the data, and convert all Fahrenheit values to Celsius using the following formula: Celsius =( Fahrenheit 32)95. You can easily find which values are in Fahrenheit by comparing them to some threshold (e.g., 50 degrees). You should use logical indexing when choosing which values to convert
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
