ME80 - Homework 1 Soln

ME80 - Homework 1 Soln - ME80 Homework #1 Solutions R....

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
ME80 Homework #1 Solutions R. White 10/1 Problem 1 Here is the command sequence: (b) RMS value is 0.7068 (c) RMS value is 0.2735 Problem 2 3a + 7b -1.5c = 9 3.2b + c = 2 (1/9)a -12b = 0 Here is the command sequence: (b) a=3.8594, b=0.0357, c=1.8856 (That is, the vector x=[a;b;c]).
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Problem 3 Here are the commands, including some unnecessary commands to make a nicer looking plot: >> t=linspace(0,10,1000); >> a=sin(t); >> b=cos(t); >> c=2*a.*b; >> d=sin(2*t) >> figure >> plot(t,c); >> hold on >> plot(t,d,'r--') >> grid >> set(gca,'LineWidth',2,'FontSize',12,'FontWeight','bold') >> xlabel('t') >> ylabel('2sin(t)cos(t)') Here is the resulting plot. It is true!! sin(2t)=2sin(t)cos(t) !!! 0 2 4 6 8 10 -1 -0.5 0 0.5 1 t 2sin(t)cos(t)
Background image of page 2
Problem 4 Here is the sequence of commands: >> t=linspace(0,4,1000); >> a=1-exp(-t); >> plot(t,a) >> grid >> set(gca,'LineWidth',2,'FontSize',12,'FontWeight','bold') >> xlabel('t (s)') >> ylabel('accel (m/s^2)') >> title('Problem 4.c') >> trapz(t,a) ans = 3.0183 >> v=cumtrapz(t,a);
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 6

ME80 - Homework 1 Soln - ME80 Homework #1 Solutions R....

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online