Skip to content
Browse files

Merge remote-tracking branch 'rcc02007/master'

  • Loading branch information
tgr12001 committed Jan 27, 2017
2 parents 6770272 + 7f93380 commit 2e72181657c9aaf8dcd57a60ee1f0472980276d5
Showing with 30 additions and 0 deletions.
  1. +30 −0 HW2/
@@ -0,0 +1,30 @@
# Homework #2
## due 2/3/17

1. Now that you have created your own repository, 'homework_1', that has a file.
Create a new file in this repository called `setdefaults.m`. This file is a matlab/octave
script that will set default plotting parameters. In this file, add the following lines:

set(0, 'defaultAxesFontSize', 16)

Commit the changes to your repository.

2. Clone your 'homework_1' repository to your own computer. Create a function,
`projectile.m` that will calculate the location of an object with an initial velocity. The
function inputs are v_mag (initial speed), theta (initial angle). The output is the height
of the object 2.37 m from its starting position. Assume g=9.81 m/s^2 and its initial
height is 1.72 m.

>> h=projectile(v_mag,theta)
h= 1

In addition to the output of `h`-height at 2.37 m-plot the path of the object from its
initial position to its position at 2.37 m away from the start. *Note: use your
`setdefaults.m` to set the plot defaults before outputting the result.*

0 comments on commit 2e72181

Please sign in to comment.
You can’t perform that action at this time.