HTML

HOWAR_EGN1007_CH15_16.m

Feb 6th, 2019
388
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.45 KB | None | 0 0
  1. %% Problem 2
  2. m = logspace(1 , 6 , 6)
  3.  
  4. CH15_2b = energy(m)'
  5.  
  6. %% Problem 3
  7. PV = 1000;
  8. I = .005;
  9. n = (10 * 12);
  10.  
  11. CH15_3b = future_value(PV, I, n)'
  12.  
  13. %% Problem 1
  14. x = input('Enter a value for x...');
  15. CH16_1 = sin(x)
  16.  
  17. %% Problem 2
  18. x = input('Enter several values in brackets (i.e. [1 , 2 , 3]...');
  19. CH16_2 = max(x)
  20.  
  21. %% Problem 3
  22. b = input('Enter the area of the base of the cone...');
  23. h = input('Enter the height of the cone...');
  24. V = 1/3 * b * h
Advertisement