This video tutorial explains how to model a temperature sensor using MATLAB. The 'polyfit' function from the MATLAB curve fitting toolbox is used to model the temperature sensor. The LM35 temperature sensor produces the output in millivolts corresponding to the sensed temperature. Therefore, the dataset includes the sensor input , i.e., temperature and the corresponding output in millivolts. Since the input and output relationship of this sensor is linear, we used a straight line function y = mx+c to model the sensor, where ,
y = sensor output
x = sensor input
m = unknown parameter and
c = unknown parameter
For any queries , mention your questions in the comment box.