Question: the problem statements. Variable names are given in bold text. Problem 1 ( 1 0 pts ) Plotting in MATLAB is a great way to

the problem statements. Variable names are given in bold text.
Problem 1(10 pts)
Plotting in MATLAB is a great way to illustrate data. For this problem, we will be using the "cannonBallTrajectory xlsx file.
a) Import "cannonBallTrajectory.xlsx" into the Workspace and call the data cannonBall (this must be done using a function in your m-file).
i) The first column contains the horizontal positions of the cannonball's trajectory. Assign these values to xPosition.
ii) Columns 2 and 3 contain the vertical positions of the cannonball's trajectory. Assign each column to yBall_11 and yBall_2 respectively.
b) Create a plot [figure (1)] to show ball 1's trajectory. The horizontal and vertical positions of the ball should be plotted on the x-axis and y-axis respectively. This plot should be a dashed cyan line with x-markers. The x-markers should be size 4 with blue as the edge color.
i) Title this plot: "Ball I's Trajectory". *Hint: apostrophes can be added by typing it out twice. *
ii) Label the x-axis: "Distance [miles]".
iii) Label the y-axis: "Height [meters]".
c) Create a second plot [figure (2)] to show ball 2's trajectory. The horizontal and vertical positions of the ball should be plotted on the x-axis and y-axis respectively. This plot should be a dash-dotted magenta line with star markers. The star markers should be size 6 with green as the edge color.
i) Title this plot: "Ball 2's Trajectory".
ii) Label the x-axis: "Distance [miles]".
iii) Label the y-axis: "Height [meters]".
 the problem statements. Variable names are given in bold text. Problem

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!