Question

MATLAB You Cannot Use guide, You must create a GUI using code only Problem 1 (100...

MATLAB

You Cannot Use guide, You must create a GUI using code only

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

Without wind Initial velocity 250 2000 Angle withx N 1000 65 5000 2000 2000 y(m) x(m) Select Solution Plot now! No wind

preview?verifier=vtyqVnzEJD6eTm7jlwiMeKj

Problem statement

A projectile is fired with an initial velocity of 250 m/s at an angle %255Ctheta%253D65%255E%255Ccirc 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.

preview?verifier=SrdHefi1rparWkksPMNgxyO

The initial velocity of the projectile is

v_%257B0y%257D%253Dv_0%255Ccos%255Ctheta and v_%257B0z%257D%253Dv_0%255Csin%255Ctheta

while in the x direction we have a constant v_x%253D-30%255C%253A%255Cfrac%257Bm%257. The total flight time is t_%257B%255Cmax%257D%253D2%255Cfrac%257B

The velocity of the projectile in the vertical direction (the other two are known) is given by

v_z%253Dv_%257B0z%257D-gt

while the position is given by

x%253Dx_0%252Bv_xt
y%253Dy_0%252Bv_%257B0y%257Dtand z%253Dz_0%252Bv_%257B0z%257Dt-%255Cfrac%

0 0
Add a comment Improve this question Transcribed image text
Know the answer?
Add Answer to:
MATLAB You Cannot Use guide, You must create a GUI using code only Problem 1 (100...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT