Advertisement
walkingthicc

hw02_sec3_thompson_l

Jan 27th, 2020
538
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. % Thompson L
  2. % MECH 102, Section 3
  3. % hw2
  4.  
  5. %This assignment is my own work except as noted in the comments below.
  6.  
  7. %Signature______________________________ %Date 1.28.2020
  8.  
  9. clc
  10. clear
  11.  
  12. %% prob1
  13. a=[17,5/7,6.02e23,tan(37)/log2(14),(10.2+8.1^2)/(sqrt(59)-10/17)]
  14. clear
  15. %% prob2
  16. b=[(4/7)*3,sqrt(pi)/6, sind(42), (10.2+8.1^2)/(sqrt(59)-10/17)]'
  17. clear
  18. %% prob3
  19. x=2.13;
  20. y=pi;
  21. c=[y,y^2,log(x/y),x-y,cosd(x)]
  22. clear
  23. %% prob4
  24. x=1:3:16;
  25. y=2:4:22;
  26. z=28:-5:3;
  27. A=[x,y,z]
  28. B=[x;y;z]
  29. C=reshape(B,[6,3])
  30. clear
  31. %% prob5
  32. F=-5*eye(4,4)
  33. clear
  34. %% prob6
  35. v=linspace(1.00,9.75,6)
  36. clear
  37. %%2020.28.1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement