Jensen_HW#6.pdf

# The file opened successfully georgedarby 1662

• 5

This preview shows pages 1–4. Sign up to view the full content.

The file opened successfully George,Darby 166.2 Dee,Helen 143.5 Lupa,Giovanni 192.4 Donovan,Cat 215.1 The average weight is 179.300000 File close successful

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

Name: Grant Jensen AERE 161, Spring 2018 HW #6 Due date: 03/07/2018 Problem 12.10 clear, clc %Grant Jensen, AER E 161, Homework #6, Problem 12.10 %Loads the file windturbinedata.dat load windturbinedata.dat %Then it creates vectors for blade diameter, wind velocity, and electricity %generated d = windturbinedata(:,1); v = windturbinedata(:,2); E = windturbinedata(:,3); %Then it creates a 3-D plot of the relationship between the 3 stem3(d,v,E); xlabel( 'Blade Diameter (ft)' ) ylabel( 'Wind Velocity (mph)' ) zlabel( 'Electricity Generated (kW-hr/year)' ) title( 'Wind Turbine Data' ) Output:
Name: Grant Jensen AERE 161, Spring 2018 HW #6 Due date: 03/07/2018 Problem 14.1 clear, clc %Grant Jensen, AER E 161, Homework #6, Problem 14.1 prod_line_A = [15.94, 15.98, 15.94, 16.16, 15.86, 15.86, 15.90, 15.88] prod_line_B = [15.96, 15.94, 16.02, 16.10, 15.92, 16.00, 15.96, 16.02] %Determines mean, median, mode, and the standard deviation for A mean_prod_line_A = mean(prod_line_A); median_prod_line_A = median(prod_line_A); mode_prod_line_A = mode(prod_line_A); std_prod_line_A = std(prod_line_A); %Determines mean, median, mode, and the standard deviation for B mean_prod_line_B = mean(prod_line_B); median_prod_line_B = median(prod_line_B); mode_prod_line_B = mode(prod_line_B); std_prod_line_B = std(prod_line_B); %Creates a table of the values we just calculated data_A_and_B = table({ 'Production Line A' ; 'Production Line B' },[mean_prod_line_A ; mean_prod_line_B],[median_prod_line_A ; median_prod_line_B],[mode_prod_line_A ; mode_prod_line_B],[std_prod_line_A ; std_prod_line_B]); data_A_and_B.Properties.VariableNames = { 'Production_Line' 'Mean' 'Median' 'Mode' 'Standard_Deviation' }; disp(data_A_and_B) Output: prod_line_A = 15.9400 15.9800 15.9400 16.1600 15.8600 15.8600 15.9000 15.8800 prod_line_B = 15.9600 15.9400 16.0200 16.1000 15.9200 16.0000 15.9600 16.0200 Production_Line Mean Median Mode Standard_Deviation ___________________ ______ ________ ______ _______________________ 'Production Line A' 15.94 15.92 15.86 0.098561 'Production Line B' 15.99 15.98 15.96 0.05757 All values are in millimeters (mm) Based on this data, production line B is better at producing marbles of the desired diameter of 16 mm. Not only is the standard deviation smaller than that of

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

This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern