diff --git a/Problem 3/figure01.png b/Problem 3/figure01.png index 9849545..0746488 100644 Binary files a/Problem 3/figure01.png and b/Problem 3/figure01.png differ diff --git a/README.md b/README.md index 192077e..6443746 100644 --- a/README.md +++ b/README.md @@ -54,4 +54,28 @@ saveas(h,'figure_02.png') ``` ![Cumulative US Energy Use per Year from 1949-2016](./Problem 4/figure_02.png) +#Problem freefall + +```MATLAB +g=figure(); +hold on +timespan=30; + +for h=[.1,1,5] + freefall(h,timespan) +end +set(0, 'defaultAxesFontSize', 16) +set(0,'defaultTextFontSize',14) +set(0,'defaultLineLineWidth',3) +set(gcf, 'Position', [200, 200, 1000, 800]) +xlabel('Time (seconds)') +ylabel('Velocity (meters/second)') +legend('v analytical(0.1)','v numerical(0.1)','v analytical(1)','v numerical(1)','v analytical(5)','v numerical(5)','Location','southeast') +title('Velocity Comparison by Varying Time Steps') + +saveas(g,'figure01.png') +``` + +![Velocity Comparison by Varying Time Steps](./Problem 3/figure01.png) + #Problem 5 (Velocity and Acceleration)