Question
MATLAB Problem 1 (100 pts) This week you will repeat the second problem from Week 8 (the problem is restated below for your convenience) but
MATLAB
Problem 1 (100 pts)
This week you will repeat the second problem from Week 8 (the problem is restated below for your convenience) but you will add a GUI (without using guide) for the user to control the execution of the program. Your program should do the following:
Create a figure that contains a plotting area and user interface controls
Allow the user to input the initial velocity of the projectile through the GUI
Allow the user to input the angle of the projectile through the GUI
Allow the user to choose whether to plot the solution considering the wind or without considering the wind
Allow the user to plot the chosen solution
Your GUI should have at least the features shown below
Problem statement
A projectile is fired with an initial velocity of 250 m/s at an angle relative to the ground. The projectile is aimed directly in the y direction, as shown in the figure below. Because of a strong wind blowing in the negative x direction, the projectile also moves in this direction at a constant speed of 30 m/s.
The initial velocity of the projectile is
and
while in the x direction we have a constant . The total flight time is
The velocity of the projectile in the vertical direction (the other two are known) is given by
while the position is given by
and
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started