Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

vx = v*cos(theta); vy = v*sin(theta); Matlab Question. I need help with assigning the air resistance. I have provided the code i'm using below. clc

vx = v*cos(theta);

vy = v*sin(theta);

Matlab Question. I need help with assigning the air resistance. I have provided the code i'm using below.

image text in transcribed

clc

%constants

v0 = 50;

g = 9.8;

vx = v*cos(theta);

vy = v*sin(theta);

ax= 0;

ay = -g;

theta = 35*pi/180; %rad

%time vector

t = linspace(0,11);

%displacement equations

x = v0*t*cos(theta);

y = v0*t*sin(theta) - 0.5*g*t.^2;

ifr = 37.2*2; %input(?Input an increasing factor for the radius of ball =?)

c = 0.5; %(?Choose C=0.5(air resistance) or C=0(no air resistance)?);

mass = 0.145 * ifr^3;

ifr = 0.036 * ifr;

rho = 1.2;

while y(i) > = 0

x(i+1) = x(i) +vx *dt +0.5 * ax * dt^2;

y(i+1) = y(i) + vy * dt + 0.5* ay * dt^2;

vx = vx + ax * dt;

vy = vy +ay *dt;

i = i + 1;

end

%plot

plot (x,y)

xlim([0 250])

ylim([0 45])

title('Projectile Motion Paths');

xlable('Horizontal Distance (m)');

ylable('Verticak Distance (m)');

Perform the calculation for a thrown cricket ball with/without air resistance. A spherical ball with a radius of R 3.6 cm and a mass m an initial velocity of 50 m/s at an angle of ? = 35 degree above the horizontal. The drag coefficient C can be taken to be 0.5 and the density of air p 1.2 kg/m3 (use g-9.8 m/s2) Develop a MATLAB script to: 1.Plot the trajectory of the object and estimate the range of the object: A. With the effect of air resistance (let C-0.5) B. Without the effect of air resistance (let C-0.0) 2. Plot the trajectory of the object and estimate the range of the object: A. The ball has twice the diameter and therefore 8 times the weight and 4 times the 0.145 kg is thrown with cross section. Keep all the other parameters the same. B. Compare to the previous result when diameter is not doubled. Note: please submit your MATLAB code and plots for question 1 and 2 as a combined UT word/pdf document. There is no need to submit them separately. Perform the calculation for a thrown cricket ball with/without air resistance. A spherical ball with a radius of R 3.6 cm and a mass m an initial velocity of 50 m/s at an angle of ? = 35 degree above the horizontal. The drag coefficient C can be taken to be 0.5 and the density of air p 1.2 kg/m3 (use g-9.8 m/s2) Develop a MATLAB script to: 1.Plot the trajectory of the object and estimate the range of the object: A. With the effect of air resistance (let C-0.5) B. Without the effect of air resistance (let C-0.0) 2. Plot the trajectory of the object and estimate the range of the object: A. The ball has twice the diameter and therefore 8 times the weight and 4 times the 0.145 kg is thrown with cross section. Keep all the other parameters the same. B. Compare to the previous result when diameter is not doubled. Note: please submit your MATLAB code and plots for question 1 and 2 as a combined UT word/pdf document. There is no need to submit them separately

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Inductive Databases And Constraint Based Data Mining

Authors: Saso Dzeroski ,Bart Goethals ,Pance Panov

2010th Edition

1489982175, 978-1489982179

More Books

Students also viewed these Databases questions

Question

2. What do you believe is at the root of the problem?

Answered: 1 week ago