WE SHOW THE SEQUENCE OF
MATLAB INSTRUCTIONS USED TO OBTAIN THE PLOT
OF THE VOLTAGE AS
FUNCTION OF THE TEMPERATURE
»T=[60:0.1:90]'; %define a
column array of temperature values
» RT=57.45*exp(-0.0227*T);
%model of thermistor
» RX=9.32; %computed
resistance needed for voltage
divider
» VT=3*RX./(RX+RT);
%voltage divider equation. Notice “./” to create output array
» plot(T,VT, ‘mo’); %basic
plotting instruction
» title('OUTPUT OF
TEMPERATURE SENSOR'); %proper graph labeling tools
» xlabel('TEMPERATURE(DEG.
FARENHEIT)')
» ylabel('VOLTS')
» legend('VOLTAGE V_T')