12.07.2015 Views

II.1 Programming in MATLAB Getting Started Graphing

II.1 Programming in MATLAB Getting Started Graphing

II.1 Programming in MATLAB Getting Started Graphing

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Key Commandsclc, clear, edit, what, whoReview Questions1. What is the <strong>MATLAB</strong> desktop?2. Describe the purpose of a semicolon placed at the end of an<strong>in</strong>struction.3. What command erases what’s <strong>in</strong> the command w<strong>in</strong>dow?4. What command clears all of the variables <strong>in</strong> the workspace?5. Describe the purpose of the commands who and what.ProblemsA2 – 1A W = 50 lb block rests on a rough surface when the frictionforce F act<strong>in</strong>g on the block is less than µN, <strong>in</strong> which N denotesthe normal force act<strong>in</strong>g on the block by the surface and µ = 0.5is the static friction coefficient. When F exceeds 0.5N, theblock beg<strong>in</strong>s to slide. The friction force F and the normal forceN depend on the <strong>in</strong>cl<strong>in</strong>e angle θ by F = 50cosθ and N = 50s<strong>in</strong>θ.Plot the functions F(θ) and µN(θ) on the same graph lett<strong>in</strong>g θrange between 0 and 90 ○ . Determ<strong>in</strong>e from the graph the largestangle θ max for which the block rema<strong>in</strong>s at rest.Answer: θ max = 26.6 ○ (Note that θ max can also be foundanalytically.)A2 – 2A triangular truss is acted upon by a P = 500 lb load, as shown.The load causes a tensile force of F AB = P/s<strong>in</strong>θ <strong>in</strong> member ABand a compressive force of F AC = Pcosθ /s<strong>in</strong>θ <strong>in</strong> member AC.Plot F AB + F AC versus θ. For what angle θ is F AB + F ACm<strong>in</strong>imal?Answer: θ m<strong>in</strong> = 60 ○ (Note that θ m<strong>in</strong> can also be foundanalytically.)9

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!