BME_02

BME_02 -...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: %-----------------------------------------------------------------% %clear and ready for the next problem % % %------------------------------------------------------------------c clear %This script solves problems 1.25 on the lab manual % % %--------------------------------------------------------------% %Inputs (a) % %--------------------------------------------------------------PA1 = [55.55 57.01 57.95]; PA2 = [110.66 114.76 113.05]; PA3 = [168.90 169.44 173.55]; PA4 = [233.66 233.89 230.67]; PA5 = [300.45 304.56 301.11]; %--------------------------------------------------------------% %Calculation (a) % %--------------------------------------------------------------mean_peak_area_1 = mean(PA1) mean_peak_area_2 = mean(PA2) mean_peak_area_3 = mean(PA3) mean_peak_area_4 = mean(PA4) mean_peak_area_5 = mean(PA5) standard_deviation_peak_area_1 = std(PA1) standard_deviation_peak_area_2 = std(PA2) standard_deviation_peak_area_3 = std(PA3) standard_deviation_peak_area_4 = std(PA4) standard_deviation_peak_area_5 = std(PA5) %--------------------------------------------------------------% %Inputs (b) % %--------------------------------------------------------------mean_value_all = [mean_peak_area_1 mean_peak_area_2 mean_peak_area_3 mean_peak_area_4 mean_peak_area_5]; sucrose_conc = [6.0 12.0 18.0 24.0 30.0]; %--------------------------------------------------------------% %Plot (b) % %--------------------------------------------------------------plot(sucrose_conc,mean_value_all,'*');xlabel('sucrose conc. (g/l)');ylabel('mean peak area') Sol = polyfit(sucrose_conc,mean_value_all,1); hold on; disp(['The slope is ' num2str(Sol(1))]); disp(['The cordinate is ' num2str(Sol(2))]); e ezplot('y=10.1721*x - 8.0830',[0,30,0,350]); e ...
View Full Document

This note was uploaded on 09/15/2011 for the course EE 150 at USC.

Page1 / 2

BME_02 -...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online