Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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]".
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intelligent Databases Object Oriented Deductive Hypermedia Technologies

Authors: Kamran Parsaye, Mark Chignell, Setrag Khoshafian, Harry Wong

1st Edition

0471503452, 978-0471503453

More Books

Students also viewed these Databases questions

Question

What is an interface? What keyword is used to define one?

Answered: 1 week ago

Question

What is DDL?

Answered: 1 week ago