blob: 320fee446fc304033d7f0eff1d16d12ab6710254 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# [Scripts](Scripts)
This directory contains the scripts to solve the homeworks assignments below:
## [hw02.m](hw02.m)
Both part 1 and part 2 on the excercise are writen in the script. When the script is run part 2 will be skipped. To run part 2, put part 1 in comments and uncomment part 2. To uncomment remove the `%{` and `%}` (line 43 and 70) to prevent the MATLAB interpreter to skip the code.
### Part 1
Creates a supplots of two graphs. The first plot shows the charge on a capacitor in an electrical circuit. First graph ranges from t = 0 to 0.8 witj, q0=10, R=60, L=9, and C=0.00005. A second plot shows a capacitor with 10 times greater charge (C=0.0005)
### Part 2
Creates a plot displaying the measured data (red diamond shapes) and the expected function (green dashed line). Ranges from 0 to 70 minutes using a a step size of 30 seconds.
# [hw03.m](hw03.m)
This script solves the volume in a tank with the shape of a cylinder with a tuncated cone on top. This script should be turned into a function to solve the volume of a tank with any given the height of cylinder and truncated cone, and diameter of both the cylinder and top of the truncated cone.
## [hw11.m](hw11.m)
Script to solve the angle of which to pull a 25 kg block with 150 N using the bisection method of finding roots.
|