Temperature Calibration in MATLAB
Jan 2024
GOAL: use MATLAB to convert deflection values into temperature values
SKILLS: MATLAB programming
Given 2 sets of data:
Calibration data: temperature (C) and corresponding deflection values (mm)
Validation data from an ice-bath to boiling water experiment: deflection readings as a function of time.
Determine a formula to convert the deflection values into degrees Celsius and convert the validation results to temperature and plot the results.
Code

Results
Based on the shape of the validation plot, I can infer that the temperature change was occurring between 100 and 150 seconds. Before that, the water was maintained at ice-temp (~0C) and after that it was maintained at boiling-temp(~100C). When I converted the deflection values using the function derived from the calibration data, I got the above Converted Validation plot. In this plot, you can see that the region of temperature change is between ~0C and ~100C. This validates the linear regression formula I got from the calibration data because it shows that, when used on the validation data, it depicts reasonable data for an ice-bath to boiling water experiment.