Need code please The velocity of a falling parachutist is given by the following
ID: 1863001 • Letter: N
Question
Need code please
The velocity of a falling parachutist is given by the following formula: Where g-9.81 m/s2 the drag coefficient c=13kg/s. Compute the mass (m) of the parachutist so that v = 42 m/s when t = 11 s Hints this is an f(x) = 0 type problem, with corresponding variables v(m) = 0 newton, bisect and fzero are functions from the NMM toolbox, directly accessible from the MATLAB prompt on MCECS computers. Rearrange the terms and write a simple m-file, then use this file to use a regular plot command to locate the approximate root. Submit the m-file and the corresponding plot. Here you will need to experiment with a range of values of 'm' Modify the m-file from (a) into a function file that can be used with the fzero function to compute a refined root. Submit your function and the solution it displays in the MATLAB command window. Solving systems of equations graphically, and with MATLAB Solve the following system of equations graphically. 0.77x1 + x2= 14.25 1.2x1 + 1.7x2 = 20 HINT: Treat x1 as the independent variable (the x-axis) and x2 as the dependent variable (the y-axis). Check your results by substituting them back into both equations.Explanation / Answer
Q5) a)The code is:
x1=linspace(30,40,40);
x2_1=14.25-x1*0.77 % x2 for the first line
x2_2=20/1.7-1.2/1.7*x1 % x2 for the second line
plot(x1,x2_1,'r',x1,x2_2,'b');
from the graph using data cursor the solution is (38.77,-15.6) (x1,x2) respectively
actually it is (-15.59,38.76)
Q5B)
on putting those values in the equation we can clearly see that this is the solution
Q4) b)The code is:
myfun= @(g,m,c,t,e,v) (g*m/c*(1-e^((-c/m)*t)))-v; % defining function
v=42;
e=2.71;
g=9.81;
t=11;
c=13;
fun=@(m) myfun(g,m,c,t,e,v);
x=fzero(fun,50) %finding it's root
fprintf('the value of the root is %f ',x);
x=61.82(app.) is the solution
Q4) a)The code is:
write v as a function of m
m=linspace(10,70,100)
v=42;
e=2.71;
g=9.81;
t=11;
c=13;
for i=1:100
v(i)=(g*m(i)/c*(1-e^((-c/m(i)*t))));
end
plot(m,v) % plot of m vs v
just copy and paste you will get the plot
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.