If a cannonball is shot at A and needs to land at B. What should be the inclination angle α for the firing? Use MATLAB to plot the x‐y positions of the cannonball from the origin at A till it lands at B for both cases. Please help with the MATLAB part only.
%Please change value of landing coordinate X &Y and
%initial velocity v0 in program as per your requirement
clc
clear all
%% Below put X and Y coordinate of langing point
% assuming firing point as origin
%calculation of angle alpha
X=40.2; % in meter
Y=0; % in meter
v0=20; % m/s
%calculation starts here
g=9.81;
K= g/(2*v0^2);
syms theta_r
theta_r=solve(X*tan(theta_r)==Y +
K*(X/cos(theta_r))^2,theta_r);
theta_d=radtodeg(theta_r);
alpha_degree=double(theta_d);
alpha_degree=real(alpha_degree);
alpha_degree=alpha_degree(alpha_degree>0)
%% plot of trajectory path
alpha_degree = transpose(alpha_degree);
num_of_roots=size(alpha_degree, 2);
x=0:X/200:X;
for i=1:num_of_roots
y = x*tand(alpha_degree(i))-K*(x/cosd(alpha_degree(i))).^2;
plot(x,y);
hold on
end
xlabel('x ( m)');
ylabel('y ( m)');
grid on
title('Trajectory of cannonball');

If a cannonball is shot at A and needs to land at B. What should be...
A cannonball is fired horizontally from the top of a cliff. The cannon is at height H = 70.0m above ground level, and the ball is fired with initial horizontal speed v0. Assume acceleration due to gravity to be g = 9.80m/s2 . Part A Assume that the cannon is fired at time t=0 and that the cannonball hits the ground at time tg. What is the y position of the cannonball at the time tg/2? Answer is 52.5 Part...
Please help with this exercise in Matlab
4 The range of an object shot at an angle θ (with respect toxaos), with the initial velocity of Va (in the absence of air resistance), is calculated by the following formula: va , sin(20) Range (0 052) And the trajectory of object is given by where h is the height of the object at each x location and g 9.81 m/s. Using n/8 increment size for the angle and Vo-10 m/s, plot...
4. Using Matlab: 4.1. Plot | H(n the following cases: (the frequency range: 0-20 KHz) a. a 0.2 0.5 ms. b. α-0.8 C.α-0.2 c-0.1 ms. c 0.5 ms. 4.2. Consider a signal whose Fourier Transform is given by: 50000ω Plot the transfer function l x(o) l and the output l Y(o) l in each of the above cases (stated in part 4.1) 4.3. Find the Inverse Fourier Transorms of| X(oand Y(o) , and generate the audio signals x and y...
PART C PLEASE!!! IF YOU KNOW HOW TO CODE MATLAB PLEASE HELP
THANK YOU
Write a Matlab/Python script which computes the trajectory of P
according to the system of equations (1) and the corresponding
(non-dimensional) range for given values of (α,φ,0), varying values
of φ 0 Plot the trajectories for 6 values of φ 0 of your choice in
the interval 0< φ0 π/2.
Compute the corresponding range reached by each trajectory.
Note: Special attention will be given to the...
HELP WITH MATLAB PRGRAM! Please only use matlab to slove this
program! Thank you!
Create a 3-D mesh plot of the function Z 1 / 1 + 0.5 x + y-1 ). Let both x and y vary from-4 to +4. La e and title the plot "Jack and Jill'sHill" (be sure the single quote in the word Jill's is in the title) ex y, anď z axes T stance East n · Distance North n andĺ Height (m)
Create...
Please I need help with MATLAB .. PLease help me . Thankyou Write Matlab code to plot a 2D sinc function over a 2D cartesian grid where x ranges from 100 to 355 and y ranges from 0 to 255 and the sinc is centered at somewhere not midway in the grid. First plot the grid, and then plot the function on the grid (both as grayscale and as a surface plot). Comment the code well, generate the figures and...
Please show work
23 An officer is investigating an incident where a car veered off a cliff. The officer is curious of the car was going. They finds that the height of the clif is 30 m and the car lands 50 m away fom the the cliff. a) How long was the car in the air for? b) What speed did the car leave the cliff? 24. A lab group wants to predict exactly where a ball will land...
THE EXPERIMENT The speed "." of a ball as it leaves the spring gun will be measured by projecting the ball horizontally (0-0) from a table top at a distance H above the floor. The gun is then elevated at a known angle 8. The position of the target is calculated using the measured value of v. calculated time of flight, and the equations of motion. A successful prediction with the projectile hitting the target means that the following concepts...
I could really use help with these please
9.6.30 A golfer hits an errant tee shot that lands in the rough. A marker in the center of the fairway is 160 yards from the center of the green. While standing on the marker and facing the green, the golfer turns 100° toward his ball. He then paces off 46 yards to his ball. See figure. How far is it to the center of the green? 160 yd 100° s 46...
THIS NEEDS TO BE
ANSWERED IN MATLAB CODING ONLY please use screen shots
so I can follow along because these two questions have been
answered, but I do not understand how it works!
See problems under image below....
I KNOW HOW TO CALCULATE ALL OF THESE PROBLEMS ALREADY I
DON'T KNOW HOW TO CODE IN MATLAB, so if possible show me the steps
so I understand, Thank you.
ALSO CAN YOU PLEASE ONLY USE ONE (1) function M
FILE
my...