This preview shows page 1. Sign up to view the full content.
Unformatted text preview: % of resistivities (x values) for the regression line. pred_temperatures = polyval(coefficients,resistivity); % Add the regression line to the existing scatter plot hold on plot(resistivity,pred_temperatures,'b') % Predict the temperature when the resistivity is 35.83 microohms-cm. predict_35mohms = polyval(coefficients,35.83); % Display the predicted and actual temperature for 35.83 microohms-cm. disp('The predicted temperature (degrees C) is:') disp(predict_35mohms) disp('The actual measured temperature (degrees C) is:') disp(temperature(10)) %----Comments----% The predicted temperature (degrees C) is: 618.4847 % The actual measured temperature (degrees C) is: 600...
View Full Document
This note was uploaded on 02/12/2012 for the course ENGR 126 taught by Professor Oakes during the Fall '08 term at Purdue University-West Lafayette.
- Fall '08