Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %% Problem 3
- 5^2
- (5 + 3) / (5 * 6)
- (4 + 6^3)^(1/2)
- 19/2 + 7 * 5^(3 + 2)
- 1 + 5 * 3 / 6^2 + 2^(2 - 4) * 1 / 5.5
- %% Problem 4
- r = 5;
- A = pi * r^2
- r = 10;
- A = 4 * pi * r^2
- r = 2;
- V = 4/3 * pi * r^3
- %% Problem 5
- edge = 5;
- A = edge^2
- edge = 10;
- SA = 6 * edge^2
- edge = 12;
- V = edge^3
- %% Problem 8
- r = 3;
- h = [1, 5, 12];
- V = pi * 3^2 * h
- b = [2, 4, 6];
- h = 12;
- A = (1/2 * b) * h
- vdim = 6;
- V = A * vdim
- %% Problem 12
- x = 1:20
- x = 1:(pi / 10):(2 * pi)
- x = linspace(4, 20, 15)
- x = logspace(1, 3, 10)
- %% Problem 13
- ft = 0:10;
- m = ft .* 0.3048;
- chart = [ft' , m']
- rad = 0:0.1 * pi:pi;
- deg = rad .* (180 / pi);
- chart = [rad' , deg']
- mph = linspace(0, 100, 15);
- fps = mph .* 1.467;
- chart = [mph' , fps']
- %% Problem 14
- g = 9.8;
- t = 0:5:100;
- d = (1/2 * g) * (t).^2;
- chart = [t' , d']
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement