can you answer both #1 (a&B) and #2 please
%1a
r=[7,8,10];
A=pi*r.^2
%b
t=5;
x0=10;
v0=15;
a=9.81;
x=x0+v0*t+.5*a*t*t
%2
increment=.000001;
theta=0:increment:pi/2;
v0=100;
g=9.81;
range = v0^2*sin(2*theta)/g;
[maxValue,index]=max(range);
fprintf('Theta when maximum range is obtained:
%f\n',theta(index))
fprintf('Decimal value of pi/4 to compare with above theta:
%f\n',pi/4)
can you answer both #1 (a&B) and #2 please 1. Write MATLAB code to do the...
Free fall yx* = *p + vgt +22=y=;ge2 - (v=v6) " = v= gt Xo = 0 = 0 g The person in the figure falls the ball. The ball has the initial velocity of vo = 0. Determine the velocity of the ball after t = 5s. v=gt = 9.81 x 5 = 49.05 m/s Calculate the position y of the ball after t = 5s. y = gt2 = 9.81 x 52 = 122.625m t = 35. Ymax...
Please solve using Matlab ONLY
Computational Modeling
The range of an object shot at an angle theta
with respect to the x-axis and an initial velocity v0 is given by
the trajectory shown below. The Range can be obtained by
the following equation,
The above equation neglects air resistance and uses standard
gravity of g = 9.81 m/s2. Write a matlab code in order to calculate
the Range for velocity range 0≤ vo ≤100 m/s and shooting angle
range 0...
I want Matlab code related to 14.35.
14.35 A Monte Carlo analysis can be used for optimization. For example, the trajectory of a ball can be computed with 2 |(P14.35) x+yo 2 cos20o y=(tan0o)x where y the height (m), Go = the initial angle (radians), the initial velocity (m/s), g 9.81 m/s, and yo vo = 25 m/s, and Oo = 50", determine the maximum height and the corresponding x distance (a) analytically with calcu- lus and (b) numerically with...
please solve it using MATLAB
The range of an object shot at an angle theta with respect to the x-axis and an initial velocity v_0 (Figure P3.16) is given by Range = v^2_0/g sin (2 theta) for 0 lessthanorequalto theta lessthanorequalto pi/2 and neglecting air resistance. Use g = 9.81 m/s^2 and an initial velocity v_0 of 100 m/s. Show that the maximum range is obtained at approximately theta = pi/4 by computing the range in increments of pi/100 between...
PLEASE HELP! I need to write a MATLAB code for this Euler
approximation for finding the velocity of a parachutist at given
time iterations. The answers are provided so you can check to see
if the code works. I need to see it done in actual MATLAB program
so I can understand the coding methodology better.
1.) Euler Method (estimated time 11min) For the second-order drag model (see Eq. (1)), compute the velocity of a free-falling parachutist using Euler's method...
Generate code with matlab please and thank you.
The braking distance of a car depends on its speed as the brakes
are applied and on the car’s braking efficiency. A formula for the
braking distance is
where bd is the braking distance, s is the car’s speed, R is the
braking efficiency and g is the acceleration due to gravity (9.81).
Write a a script that calls a function to prompt the user for s and
R, that function call...
The MATLAB code should have the outline of this:
m0 = 160e3; % [kg]
u = 1800; % [m/s]
v = 750; % [m/s]
q = 2600; % [kg/s]
g = 9.81; % [m/s^2]
tl = 10; % Lower guess [s]
tu = 50; % Upper guess [s]
es = 0.0001; %Stopping criterion
t_v750 = rocket(m0, g, q, u, v,tl,tu,es)
function t_root = rocket(m0,g,q,u,v,xl,xu,es);
% Inputs:
% m0: initial mass of rocket at time t=0 [kg] (scalar)
% g: gravitational...
solve using Matlab , write the matlab code please
2.95. A DVD drive is mounted chassis and is modeled as a single-degree-of-freedom on a spring, mass, and damper. During normal operation, the drive (having a mass of 0.4 kg) is subject to a harmonic force of 1 N at 10 rad/s. Because of material considerations and static deflection, the stiffness is fixed at 500 N/m and the natural damping in the system is 10 kg/s. The DVD player starts and...
PROBLEM 2 Write a Matlab code* (script) or use Excel to determine the damping coefficient of a spring - mass - damper system with a mass of 165 kg and stiffness of 2400 N/m such that its response will die out (decay) after about 1.5 s, given a zero initial position and an initial velocity of 8 mm/s. 1. Display the numerical value of the damping coefficient. 2. Plot the response of the system. *Turn in your Matlab code with...
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...