Skip to content

update #1

Merged
merged 26 commits into from
Feb 2, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
36 changes: 36 additions & 0 deletions HW2/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Homework #2
## due 2/3/17

1. Now that you have created your own repository, 'homework_1', that has a README.md 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:

```matlab
set(0, 'defaultAxesFontSize', 16)
set(0,'defaultTextFontSize',14)
set(0,'defaultLineLineWidth',3)
```

Commit the changes to your repository.

![projectile(v_mag,theta) predicts the height of the projectile based upon initial
velocity and position, as see in the Figure](projectile.png)

2. Clone your 'homework_1' repository to your own computer. Now, we want to create a
function that uses kinematic formulas to predict the path of a projectile. The dimensions
are taken from official dart board dimensions
[darts](http://dartbrokers.com/dartboard-height.html). 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.

```matlab
>> 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.*
Binary file added HW2/projectile.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
334 changes: 334 additions & 0 deletions HW2/projectile.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,21 @@ matlab/octave functions and programming best practices.
**Office hours**: Mon 2:30-4:30pm and Thur 11am-1pm in Engineering II room 315

## Teaching Assistants:
- Graduate: **TBD**
- Office hours: 2 hours / week in office **TBD**
- Graduate: Peiyu Zhang <peiyu.zhang@uconn.edu>
- Office hours: Friday 9:00-11:00am in Engineering II room 315

## Course Information
**Prerequisite:** CE 3110, MATH 2410Q

**Textbook:** Chapra, Steven, *Applied Numerical Methods with MATLAB for Engineers and
Scientists* 3rd edition.

**Tools used:** [Matlab](https://www.mathworks.com/products/matlab.html),
[Octave](https://www.gnu.org/software/octave/) , [Github](https://github.com).

**Recommended tools:** Github Desktop, git, Atom (text editor), Vim (text editor),
Jupiter notebook (with matlab or octave kernel)

## Grading

| Item | Percent | Requirement |
Expand Down