From 2e98e2dd7d084051c468f0d8fe53bf3bd6a4900a Mon Sep 17 00:00:00 2001 From: Danielle N Browning Date: Sun, 22 Jan 2017 19:54:39 -0500 Subject: [PATCH 1/5] Update data.csv --- extra_credit_1/data.csv | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/extra_credit_1/data.csv b/extra_credit_1/data.csv index 8e4a5ce..bc100f1 100644 --- a/extra_credit_1/data.csv +++ b/extra_credit_1/data.csv @@ -1,3 +1,6 @@ radius (cm), angle (degrees) -0, 0 -2.25, 62 +7.00, 96 +3.90, 186 +2.95, 166 +8.60, 262 +2.50, 355 From fc59b3368f5ae91141e6984595287af663390768 Mon Sep 17 00:00:00 2001 From: Danielle N Browning Date: Mon, 23 Jan 2017 15:36:52 -0500 Subject: [PATCH 2/5] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ca1565e..dbade59 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Computational Mechanics +# Computational Jokes ## ME 3255 Spring 2017 ### Github page: [https://github.uconn.edu/rcc02007/ME3255S2017.git] From 41adbc7d4af6ef58a302e0f528ad53e3465ad07d Mon Sep 17 00:00:00 2001 From: Danielle N Browning Date: Tue, 31 Jan 2017 13:55:00 -0500 Subject: [PATCH 3/5] Create setdefaults.m --- HW1/setdefaults.m | 1 + 1 file changed, 1 insertion(+) create mode 100644 HW1/setdefaults.m diff --git a/HW1/setdefaults.m b/HW1/setdefaults.m new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/HW1/setdefaults.m @@ -0,0 +1 @@ + From 02045724b5e8c2f0289c5b7aee51850fb808e18f Mon Sep 17 00:00:00 2001 From: Danielle N Browning Date: Tue, 31 Jan 2017 13:56:18 -0500 Subject: [PATCH 4/5] Update setdefaults.m --- HW1/setdefaults.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/HW1/setdefaults.m b/HW1/setdefaults.m index 8b13789..8c3c5c8 100644 --- a/HW1/setdefaults.m +++ b/HW1/setdefaults.m @@ -1 +1,3 @@ - +set(0, 'defaultAxesFontSize', 16) +set(0,'defaultTextFontSize',14) +set(0,'defaultLineLineWidth',3) From 733d853024f3bbef8f210b62902a13ef22275dba Mon Sep 17 00:00:00 2001 From: Danielle N Browning Date: Tue, 31 Jan 2017 15:32:11 -0500 Subject: [PATCH 5/5] Create projectile.m --- HW1/projectile.m | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 HW1/projectile.m diff --git a/HW1/projectile.m b/HW1/projectile.m new file mode 100644 index 0000000..3fb0438 --- /dev/null +++ b/HW1/projectile.m @@ -0,0 +1,28 @@ +function h=projectile(v_mag,theta) +%input inital velocity v_mag +%input theta +angle=theta*(pi/180); %Converts the angle into radians +g=9.81; %acceleration due to gravity +x_position=2.37;%max x-position where the height will be calculated +hi=1.72; %height where the dart begins its projectile motion +vy=v_mag*sin(angle); %inital velocity in the y direction +vx=v_mag*cos(angle); %inital velocity in the x direction +t_air=x_position/vx; %The total flight time in seconds +y_d=(vy*t_air)-(.5*g*(t_air.^2)); %the y position not including the inital height +h=y_d+hi %Final height after including the inital height before thrown + + +%Pull function setdefaults +setdefaults +%plotting points +t= 0:.01:t_air; %range for the time from 0 to end of flight, space .01 +x=vx*t %calculating x position +y_d=(vy*t)-(.5*g*(t.^2));%y position without inital height +y=y_d+hi %calculating y position +%Ploting x and y points +plot(x,y) +%axis labels and title +xlabel('x position') +ylabel('y position') +title('Projectile Motion of Darts') +end