Question

Homework 5 (35 Points max) Please Submit all Matlab and Data files that you create for this homework Problem 1 (max 20 Points
Problem 2 (max 15 Points): The following data for the density of water versus temperature comes from a table that was measure
Homework 5 (35 Points max) Please Submit all Matlab and Data files that you create for this homework Problem 1 (max 20 Points): For the second-order drag model (see Eq.(1)), compute the velocity of a free-falling parachutist using Euler's method for the case where m80 kg and cd 0.25 kg/m. Perform the calculation from t 0 to 20 s with a step size of 1ms. Use an initial condition that the parachutist has an upward velocity of 20 m/s at t0. At t 10 s, assume that the chute is instantaneously deployed so that the drag coefficient jumps to 15 kg/m. Plot the velocity vs. time. This is a Matlab task. Solve this problem using a single for-loop and no more than two if-statements Grading Matrix for Problem 1 (max 20 Points in total): (a) up to 4 Points, if a for loop has been used for to increment the time. (b)up to 4 Points, if an if-statement has been used for the selection of the correct ca value. different physical cases (direction of drag, and direction of velocity) (velocity vs time). (c) up to 6 Points, if an if-statement has been used to differentiate the 3 (d) up to 6 Points, if the velocity data is correct and plotted in plotted correctly
Problem 2 (max 15 Points): The following data for the density of water versus temperature comes from a table that was measured with high precision Solve this problem by using the Matlab functions polyfit and polyval. Please note, that you can use only polyval to evaluate any polynomial (a) Fit a third-order polynomial to the data. To ensure high numerical stability, use the scaling (b) Plot the polynomial estimated in (a) using 1000 samples where T is in the interval [0, 16] (blue (c) Determine an inverse polynomial to estimate the temperature corresponding to a density of capabilities of polyfit. line). Plot the raw data as well on top of that plot (red dots, not connected). 0.9993 g/cm2. Base your estimate on a third-order interpolating polynomial and assume T> 4 C. Determine with the help of the Newton-Raphson method the temperature T that corresponds to a density of 0.9993 g/cm2.Estimate a new polynomial but do not use any scaling features of polyfit. Use the coefficients obtained via polyfit to estimate the coefficients of the derivative. (d) (e) Compare the results in (c) and (d). Leave a comment in your Matlab code that discusses the difference in the results. 12 16 Density 0.99987 0.99988 0.99952 0.99897
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Kindly upload different questions separately. Thank you!

Please rate the answer. Thank you!

MATLAB Code:

m=80;
c1=0.25;
c2=1.5;
g=9.81;
t(1)=0;
v(1)=20;
h=0.001; &Step size
for i=1:20000
if i<10000
m=g-(c1/m)*v0*v0;
end
if i>=10000
m=g-(c2/m)*v0*v0;
end
v(i+1)=v(i)+h*m;
t(i+1)=t(i)+h;
end

plot(t,v)
xlabel('Time(s)')
ylabel('Wind velocity (m/s)')
title('Eulers Method')
grid on

Result:

Eulers Method 2000 1500 500_ 5i 15 20 25 Time(s)

Add a comment
Know the answer?
Add Answer to:
Homework 5 (35 Points max) Please Submit all Matlab and Data files that you create for this homew...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Please solve this using matlab and type in the codes here The following data was obtained...

    Please solve this using matlab and type in the codes here The following data was obtained when the stopping distance d of a car on a wet road was measured as a function of the speed v when the brakes were applied: v (mi/h) 12.5 25 37.5 50 62.5 75 d (ft) 20 59 118 197 299 420 Use polyfit function to determine the coefficients of a quadratic polynomial d = a_2 v^2 + a_1 v + a_0 that best...

  • 1) Use the Matlab function polyfit to curve fit the saturation pressure versus temperature data a...

    MATLAB Code for question (2) 1) Use the Matlab function polyfit to curve fit the saturation pressure versus temperature data along the vaporization line for water in the table below with a polynomial of degree n. The Matlab function polyval may be used to evaluate the polynomial at any point. Compare the saturation pressure as calculated by the polynomial with the data given in the table and observe what happens as the degree of the polynomial n is increased. Tabulate...

  • Using Matlab. The following calibration data are from a hot wire anemometer (HWA) velocity measurement system for air...

    Using Matlab. The following calibration data are from a hot wire anemometer (HWA) velocity measurement system for air flow: Air Velocity, V (m/s) HWA Output Voltage (E) 0.0 1.100 1. 1.1 1.362 2. 1.431 1.5 3. 1.487 2.0 4. 1.535 2.5 5. 1.576 6 3.0 1.647 4.0 7. 1.706 8. 5.0 1.780 9. 6.5 1.841 10. 8.0 1.910 10 11. 1.983 12. 13 13. 16 2.072 14. 20 2.159 15. 25 2.257 16. 32 2.379 17. 40 2.500 1. Perform...

  • Please MATLAB for all coding with good commenting. (20) Consider the function f(x) = e* -...

    Please MATLAB for all coding with good commenting. (20) Consider the function f(x) = e* - 3x. Using only and exactly the four points on the graph off with x-coordinates -1,0, 1 and 2, use MATLAB's polyfit function to determine a 3' degree polynomial that approximates f on the interval (-1, 2]. Plot the function f(x) and the 360 degree polynomial you have determined on the same set of axes. f must be blue and have a dashed line style,...

  • Please use MATLAB ME2543 Simulation Methods > Assignment 10: Interpolation and Curve Fitting > Problem 1...

    Please use MATLAB ME2543 Simulation Methods > Assignment 10: Interpolation and Curve Fitting > Problem 1 O solutions submitted (max: Unlimited) Given the following data: Temperature, T[°C] 100 150 200 250 300 400 500 Energy, u (KJ/kg] 2506.7 2582.8 2658.1 2733.7 2810.4 2967.9 3131.6 • Plot u versus T • What is the interpolated value for u=2680.78 KJ/kg • Test out the spline interpolation and plot the new data generated Script C Reset MATLAB Documentatic 1 % 'interp_u' has to...

  • please help with #1 a and b. thank you Use the following data for all problems:...

    please help with #1 a and b. thank you Use the following data for all problems: The data below defines the sea-level concentration of dissolved oxygen for fresh water as a function of temperature: T°C omg/L 0 8 16 14.621 11.843 9.870 24 32 40 8.418 7.305 6.413 a. Approximate o(19) using a 1st order Newton's interpolating polynomial. b. Approximate o(19) using a 2nd order Newton's interpolating polynomial. 2) Use linear algebra to find the coefficients of the 2nd order...

  • Please don't attempt if you can not write a MATLAB PROGRAM. I don't need numerical physics...

    Please don't attempt if you can not write a MATLAB PROGRAM. I don't need numerical physics solution, I need MATLAB code. Read the question carefully 2) Falling Drops Imagine a solid sphere of diameter, d, falling through the air. After its release, the sphere accelerates until it reaches its terminal velocity. The terminal velocity is obtained when the drag force due to air friction, Fa, balances the weight of the sphere, W. The weight of the sphere is simply its...

  • This problem will introduce you the MATLAB (if you have not used it before). In this...

    This problem will introduce you the MATLAB (if you have not used it before). In this course we will use MATLAB in a limited fashion to give you a glimpse on how it is used to solve engineering problems. In your junior year, you will spend an entire semester in AEM 3101 becoming very proficient in using MATLAB for engineering modeling and simulation purposes. In this problem you will use MATLAB to accomplish the following tasks: (a) Write a function...

  • Use matlab a) Create a simulated data set b) Create a set of plots to determine...

    Use matlab a) Create a simulated data set b) Create a set of plots to determine the best transformation to linearize the data c) Fit a first order polynomial (y mx + b) to the linearized data to find the constants m and b d) Reconstruct the original equation from m and b in the linear fitted polynomial e) Plot the fitted equation. Radioactive decay is modeled by the equation: rt where A the amount of mass as a function...

  • Problem 1 Use the trapezoidal rule technique to approximate the following integrals: a) 「(x2+1)d...

    help wanted?? thank you explain correctly Problem 1 Use the trapezoidal rule technique to approximate the following integrals: a) 「(x2+1)dr(Note: use 0.5 increments forx) b) sina d INote: use a MATLAB function to subdivide the interval into eight equal parts) c e dx (Note: use 0.25 increments for x Problem 2 Use the Simpson's rule to evaluate the following integrals aDdr Problem 3: Given the polynomial: x3-6x2 + 30-0, Use MATLAB to find all roots of this polynomial. Use MATLAB's...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT