1.Write down the fplot( ) command used to generate a straight line formed by two (x,...

60.1K

Verified Solution

Question

Mechanical Engineering

1.Write down the fplot( ) command used to generate a straightline formed by two (x, y) points: (-3, 5) and (3, 8). Plot the linefrom -5 ≤ x ≤ 5. Show your derivation of the line equation.

2. [15pts] The position x as a function of time of aparticle that moves along a straight line is given by

a. [3pts] Derive the expressions for the velocity andacceleration of the particle

Make plots of the position, velocity,and acceleration as a functions of time for 0 ≤ t ≤ 15 secfollowing the instructions below.

b. [6pts] Using plot( ), plot the position, velocity, andacceleration on a single plot window using black solid line, greendash line, and yellow dash-dot line, respectively. Show the plot inFigure 1. Use the line width of 2. Include the following title inbold face: “Motionprofile of a particle between 0 ≤ t ≤ 15 sec”.Include proper legend and axis labels with units. Show grid lines.All formatting must be done inside your code and not from theFigure Editor.

c. [6pts] Using subplot, plot the position, velocity, andacceleration vs time in 3 separate plots arranged in a singlecolumn. Show the subplot in Figure 2. Include the following titlein bold face above the top-most plot:“Position, velocity and acceleration profile of aparticle”. Show grid lines and proper axis labels on allyour plots. All formatting must be done inside your code and notfrom the Figure Editor.

Answer & Explanation Solved by verified expert
3.6 Ratings (643 Votes)
The two points are given by 35 and 38The equation of line joining two points is given byyy1y2y1x2x1xx1 y58533x3 2y10x3 yx132 Our Line EquationUsing the command fplotx x132 I got    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students