Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- format short
- %% Problem 3
- Po = 100;
- r = 0.9;
- t = 10;
- P = Po * exp(r * t)
- %% Problem 10
- rad = 0:0.1 * pi:2 * pi;
- sine = sin(rad);
- cosine = cos(rad);
- chart = [rad' , sine' , cosine']
- %% Problem 11
- A = 4;
- w = 0.6;
- t = 0:0.1:10;
- x = A * cos(w * t);
- chart = [t' , x']
- %% Problem 16
- theta = 0:0.01 * pi:0.5 * pi;
- g = 9.81;
- vo = 100;
- range = (vo^2 / g) * sin(2 * theta);
- chart = [theta' , range']
- %% Problem 17
- G = [68 83 61 70 75 82 57 5 76 85 62 71 96 78 76 68 72 75 83 93]
- avg = mean(G);
- med = median(G);
- mod = mode(G);
- chart = [sort(G, 'ascend')']
- amt = length(G)
Advertisement