[Solved]Question 1 50 Points Design Well Documented Matlab Script Exq1m Calculates Distance R T Us Q37149513
program in Matlab
#1
#2
number two should look like this picture
#3Question 1 (50 Points) Design a well-documented MATLAB script ExQ1.m that calculates the distance r(t) using vectorization techniques for an object traveling in two-dimensions described by the equations of motion: x(t) = 9t2-7t + 13 and y(t) 16t 11 Within the MATLAB script, Ex01.m, determine the minimum range of the target to the origin (xso,y o) and the time when the minimum range is achieved. Submit a set of plots in a figure ExQ1.fig that includes two subplots plotted in two rows and one column. The first subplot is y(t) vs. x(t), while the second subplot is r(t) vs. t. Both plots should be labeled and titled appropriately The time vector should start at 0 and end at 10 taking uniform steps of 0.1 in each of the plots Grading: Five points each (20 total) for correct t. x,y and r vectors in ExO1.m script. Ten points each for determining the minimum range to the origin and the time when the minimum range is achleved (20 points total) submitted in the ExQ1 I.m script. Five points each (10 total) for correct subplots submitted in ExQ1.fig Question 2 (150 Points) The Volume of a right cylinder is given by the equation: V = πr2h where r is the radius and h is the height. The urface Area for the cylinder is S = 2trh + 2m2 In a well-documented MATLAB script, ExQ2.m, construct a two-dimensional surface over a meshgrid of radi R and heights H that range from 0 to 10 meters- with increment steps of 1 meter. Submit a subplot ExQ2.fig to illustrate as shown below. the far right of each surface, while the third row is a cut along the respective back sides. Subplots in the second and third rows represent slices from the surfaces. The second row is a cut along · Use logical indexing techniques to determine the radius and height where the condition that the Volume exceeds 600 cubic-meters and the Surface Area is less than 425 square-meters. Volume of Right Circular Cylinder Surface Area of Right Circular Cylinder 2000 a 2000 10 10 10 Height [m Radius [m] Height [m] Radius [m Volume vs Height Radius 10 m Surface Area vs Height Radius 10 m 3000 2000 1000 2000 1000 0 2 4 6 8 10 Height (m Volumevs Radius @Height-10m Height [m Surface Areas Radius@Height: 10 m 3000 弖2000 1000 2000 0 2 4 6 8 10 0 246 8 10 Question 3 (50 Points) Consider the function fox) – sin. Create an anonymous function named fun inside of a script ExQ3 for fe). Form a vector x between 0.1 and 10, with a step size of 0.001 and plot f(x) vs. x in a file ExQ3.fig. Find the minimum of the function f(a) between the limits of 1/2 and 10 using MATLAB’s built-in function fminbnd that accepts fun and record that value as a comment within ExQ3.m. Finally, use the anonymous function fun to evaluate the area beneath the curve using MATLAB’s integral function. The limits for the integration are 1/2 to 10 Grading: Tyenty points for the anonymous function definition fun for (x) in the script ExQ.3.m. Ten points for ExQ3.fig ptot. Ten points each (20 points total) for finding the mínimum and area using fminbnd and integral in ExQ3.m. Page 2 Show transcribed image text Question 1 (50 Points) Design a well-documented MATLAB script ExQ1.m that calculates the distance r(t) using vectorization techniques for an object traveling in two-dimensions described by the equations of motion: x(t) = 9t2-7t + 13 and y(t) 16t 11 Within the MATLAB script, Ex01.m, determine the minimum range of the target to the origin (xso,y o) and the time when the minimum range is achieved. Submit a set of plots in a figure ExQ1.fig that includes two subplots plotted in two rows and one column. The first subplot is y(t) vs. x(t), while the second subplot is r(t) vs. t. Both plots should be labeled and titled appropriately The time vector should start at 0 and end at 10 taking uniform steps of 0.1 in each of the plots Grading: Five points each (20 total) for correct t. x,y and r vectors in ExO1.m script. Ten points each for determining the minimum range to the origin and the time when the minimum range is achleved (20 points total) submitted in the ExQ1 I.m script. Five points each (10 total) for correct subplots submitted in ExQ1.fig
Question 2 (150 Points) The Volume of a right cylinder is given by the equation: V = πr2h where r is the radius and h is the height. The urface Area for the cylinder is S = 2trh + 2m2 In a well-documented MATLAB script, ExQ2.m, construct a two-dimensional surface over a meshgrid of radi R and heights H that range from 0 to 10 meters- with increment steps of 1 meter. Submit a subplot ExQ2.fig to illustrate as shown below. the far right of each surface, while the third row is a cut along the respective back sides. Subplots in the second and third rows represent slices from the surfaces. The second row is a cut along · Use logical indexing techniques to determine the radius and height where the condition that the Volume exceeds 600 cubic-meters and the Surface Area is less than 425 square-meters.
Volume of Right Circular Cylinder Surface Area of Right Circular Cylinder 2000 a 2000 10 10 10 Height [m Radius [m] Height [m] Radius [m Volume vs Height Radius 10 m Surface Area vs Height Radius 10 m 3000 2000 1000 2000 1000 0 2 4 6 8 10 Height (m Volumevs Radius @Height-10m Height [m Surface Areas Radius@Height: 10 m 3000 弖2000 1000 2000 0 2 4 6 8 10 0 246 8 10
Question 3 (50 Points) Consider the function fox) – sin. Create an anonymous function named fun inside of a script ExQ3 for fe). Form a vector x between 0.1 and 10, with a step size of 0.001 and plot f(x) vs. x in a file ExQ3.fig. Find the minimum of the function f(a) between the limits of 1/2 and 10 using MATLAB’s built-in function fminbnd that accepts fun and record that value as a comment within ExQ3.m. Finally, use the anonymous function fun to evaluate the area beneath the curve using MATLAB’s integral function. The limits for the integration are 1/2 to 10 Grading: Tyenty points for the anonymous function definition fun for (x) in the script ExQ.3.m. Ten points for ExQ3.fig ptot. Ten points each (20 points total) for finding the mínimum and area using fminbnd and integral in ExQ3.m. Page 2
Expert Answer
Answer to program in Matlab#1 #2 number two should look like this picture #3… . . .
OR

