Homework1-Solns-Complete

# Homework1-Solns-Complete - ME 104 Engineering Mechanics II...

This preview shows pages 1–11. Sign up to view the full content.

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

View Full Document

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

View Full Document

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

View Full Document

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

View Full Document

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

View Full Document
% ME 104: Engineering Mechanics II % Solution to Homework 1: Problem 5 % Prepared by David A. Moody % Date: January 25, 2011 %-------------------------------------------------------------------------- % Main Code for Problem 5 close all ; clear all ; clc; L1=12; % distance to box [ft] L2=14; % distance to end of box [ft] h=-1/3; % vertical distance from starting point to box [ft] theta=30*pi/180; % given angle [radians] g=32.2; % gravity in [ft/s^2] T1=(2/g*(L1/(cot(theta))-h))^(1/2); % Time for particle to reach L1 [sec] T2=(2/g*(L2/(cot(theta))-h))^(1/2); % Time for particle to reach L2 [sec] vo1=((-g/2*L1^2/(cos(theta))^2)/(h- ... (sin(theta)*L1)/cos(theta)))^0.5; % initial velocity [ft/sec] vo2=((-g/2*L2^2/(cos(theta))^2)/(h- ... (sin(theta)*L2)/cos(theta)))^0.5; % initial velocity [ft/sec] t=linspace(0,T2,10); % time for plot [sec] vo=linspace(vo1, vo2,5); % initial velocity [ft/sec] % Calculating outputs for a range of initial velocity (vo) for i = 1:length(vo) x(:,i)=vo(i)*cos(theta)*t; % x(t) for various vo y1(:,i)=vo(i)*sin(theta)*t-g/2*t.^2; % y(t) for various vo y2(:,i)=sin(theta)*x(:,i)/cos(theta)-g/2*((x(:,i)./ ... (vo(i)*cos(theta)))).^2; % y(x) for various vo end %-------------------------------------------------------------------------- %Plots for Problem 5 subplot(3,1,1) plot(t,x) % Plot of X(t) title( 'ME 104: Homework 1, Problem 5' ) grid on ;
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern