hw07_heatxchanger.wang532

hw07_heatxchanger.wang532 - file f % --- CALCULATIONS...

This preview shows page 1. Sign up to view the full content.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % Programmer(s) and Purdue Email Address(es): % 1. wang532@purdue.edu % % Section:21 % % Assignment #:7 % % Academic Integrity Statement: % % I/we have not used source code obtained from % any other unauthorized source, either modified % or unmodified. Neither have I/we provided access % to my/our code to another. The project I/we am/are submitting % is my/our own original work. % % Program Description: % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % --- INPUTS --- % Th = load('thermocouple_noheader.dat'); % Before start, it needs values from .dat
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: file f % --- CALCULATIONS ---Th_sort=sort(Th); % sort data mean_temp_F = mean_T*(9/5) + 32; %unit conversion m min_T = min(Th); max_T = max(Th); mean_T = mean(Th); std_T = std(Th); s % --- OUTPUTS ----% fprintf('The mean is %2.1f F \n', mean_T); fprintf('The min is %2.1f F\n',min_T); fprintf('The max is %2.1f F\n',max_T); f fprintf('The standard deviation of the data is %2.1f F\n',std_T); f hist(Th) % histogram xlabel('Temp') title('Histogram'); ylabel('Frequency') y %Q&amp;A % 2) No error. % 6) the data is correct so far. %...
View Full Document

Ask a homework question - tutors are online