Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

MATLAB, Please answer question 3. +X ENGR 102 Homework 9 G 1.) An elliptical sta

ID: 3919522 • Letter: M

Question

MATLAB, Please answer question 3.

+X ENGR 102 Homework 9 G 1.) An elliptical staircase that decreases in size with height can be modeled by the parametric equations xrcos(t) y rsin(t) int where, ab [b cos(t) ]2 + [a sin(t)]-e a and b are the semimajor and semiminor axes of the ellipse, h is the staircase heght, and n is the number pf revolutions that the staircase makes. Make a 3-D plot of the staircase with a = 20 m, b 10 m, h 18 m, and n = 5-(Create a vector t for the domain 0 to 2?n and use the plot] command. Properly format the plot. 2.) Molecules of a gas in a container are moving around at ditterent speeds. Maxuvell's speed distribution law Erves the probability distribution ?(v) as a function of temperature and speed: P(v) = 4? where M is the molar mass of the gas in kg/mol, R = 8.31?mol K), is the gas constant, T is the temperature in kelvins, and v is the molecule's speed in m/s Make a 3-D plot of Plv) as a function of v and T for 0 s v (molar mass 0.032kg/mol). Properly format the plot. 1000and 70Ts 320 K for onygen 3.) Generate anoymaus functions for the following functions b. Twe(v,T 35.740.6215 7- 35.75 v16 0.4275 T

Explanation / Answer

Hi

Answer to Q3: Let me first define Anonymous functions:

It says that an anonymous function is a type of function which is never stored in a program file, rather associates with the variable whose data-type is function_handle.

(a) f(x) = @(x)((e.^-0.17*x)*x.^3 -2*x.^2 +0.8*x -3 )

(b) TWC(v,T)= @(v,T)(35.74 + 0.6215*T -35.75*v.^0.16 +0.4275*T*v.^0.16)