diff --git a/Problem 5/my_acceleration.m b/Problem 5/my_acceleration.m index d420c08..3337e19 100644 --- a/Problem 5/my_acceleration.m +++ b/Problem 5/my_acceleration.m @@ -22,5 +22,6 @@ function [ax,ay,az]=my_acceleration(x,y,z,t) ax = diff_match_dims(vx',t); ay = diff_match_dims(vy',t); az = diff_match_dims(vz',t); + %added apostrophe for derivatives of velocity end diff --git a/README.md b/README.md index 6443746..7b57bf4 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ # Answer to Homework Question I hope to learn how to perform MATLAB functions more easily. -#Problem 3 +#Problem 3 (Mean_Std) ```MATLAB A_66=zeros(6:6); for i=1:6; @@ -18,7 +18,7 @@ mean of A_66 = 12.25 stdev of A_66 = 9.07 -#Problem 4 +#Problem 4 (Energy Use) ```MATLAB data=dlmread('US_energy_by_sector.csv',',',2,0); h=figure(); @@ -54,7 +54,7 @@ saveas(h,'figure_02.png') ``` ![Cumulative US Energy Use per Year from 1949-2016](./Problem 4/figure_02.png) -#Problem freefall +#Problem 5 (Freefall) ```MATLAB g=figure(); @@ -78,4 +78,4 @@ saveas(g,'figure01.png') ![Velocity Comparison by Varying Time Steps](./Problem 3/figure01.png) -#Problem 5 (Velocity and Acceleration) +#Problem 6 (Velocity and Acceleration)