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
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
MATLAB You Cannot Use guide, You must create a GUI using code only Problem 1 (100...
Create a program that plots the trajectory, from the initial height
to the ground, of a projectile accelerating both in the horizontal
and vertical directions.
-Matlab Code
PROBLEM 4: In your physics class, projectile motion has two components: constant-velocity motion in the horizontal direction and free-fall motion in the vertical direction. However, in reality, the horizontal motion has acceleration due to air resistance, wind, and other factors. The goal of this problem is to visualize the trajectory of a projectile...
Write a MATLAB Graphical User Interface (GUI) to simulate and plot the projectile motion – the motion of an object projected into the air at an angle. The object flies in the air until the projectile returns to the horizontal axis (x-axis), where y=0. This MATLAB program should allow the user to try to hit a 2-m diameter target on the x-axis (y=0) by varying conditions, including the lunch direction, the speed of the lunch, the projectile’s size, and the...
How to do this question using while loop only?
What happens if you try to pay less than $5 per month? In Chapter 1, we studied the problem of a projectile being launched at an angle of theta at an initial velocity of v. The equations for the height h and horizontal location x as functions of time t are as follows: h(t) = vt sin theta - 1/2 gt^2 x(t) = vt cos theta Write a MATLAB program to...
These questions are to be answered using MATLAB. I only
need #3 answered, but #1 provides information (like initial
velocity, etc.) required for the questions. I think I have it done,
but I'd like to see if there are other ways to use MATLAB for this
question.
PROJECTILES The distance a projectile travels when fired at an angle 8 is a function of time and can be divided into horizontal and vertical distances. Horizontal (1) = 1.V.cos(0) Vertical(t) = 1•...
Python
Consider the GUI below (3 Labels and 3 Radiobuttons) which has
been produced with a Python program using the Tkinter
library.
You are required to write a Python program to produce this
interactive GUI.
Your GUI must replicate the example above as closely as
possible, including the same widgets displayed in the sample
positions on the GUI, using the same colours, shapes and relative
sizes. (Note that the GUI border in the sample output does not need
to be...
Matlab Problem: please use matlab format, thank you in
advance!!
Problem 6 (1 point. Instructor's Initials This is Problem 5.20 in the text, with the following corrections and additions: 1) There is an error in the formula for f(x). The correct formula is saies seroatmation dfs ea ee witn m 1,3. 1 2??? -sin 4 /A f(x) = Write a program that accepts as user input the number of terms in the sum. For example, if the user requests 3...
Please help me correct my MATLAB script code for this
problem, thank you!!
A projectile PA is launched from point A towards the east with an initial launch velocity voa and an initial lauw angle of 0x. The impact point of the projectile Pa is a point B in a valley with an ordinate, yon, located below the clevation of point A. The launch from point A is instantaneously detected at point B, and a counter projectile P launched simultaneously...
USE MATLAB ALSO PLOT THE PENDULUM animation
Case 1: Pendulum
Create a plot that shows a pendulum moving.
First,use the ode45 function to solve the pendulum equation
between 0 and 10 seconds. The pendulum equation is:
Create a plot that shows a pendulum moving First, use the ode45 function to solve the pendulum equation between 0 and 10 seconds. The pendulum equation is: + sin(e) 0 where g is gravity and L is the length of the pendulum bar. Use...
I
want the math lab code for theses problems in a unique way
Theory A projectile is launched from point A up an incline plane that makes an angle of 10 with the horizontal. The mountain is 6,000 m high. Vo 10° Figure 1: Flightpath of a projectile. If we neglect the air resistance, the flight path of a projectile launched at an initial speed vo and an angle θ of departure relative to the horizontal is a parabola (see...
Please try to write the code with Project 1,2 and 3 in
mind. And use java language, thank you very much.
Create an Edit Menu in your GUI
Add a second menu to the GUI called Edit which will have one
menu item called Search. Clicking on search should prompt the user
using a JOptionPane input dialog to enter a car make. The GUI
should then display only cars of that make. You will need to write
a second menu...