Question: solve the highlighted option please. ...... Problem 4 10 points The data vectors x and y represent noisy coordinates for horizontal position and height, respectively,
...... Problem 4 10 points The data vectors x and y represent noisy coordinates for horizontal position and height, respectively, of a particle following a parabolic trajectory. Compute the two values of x at which y is expected to be zero, based on fitting the trajectory to a parabola by least squares. Template for the function header: [x1, x2]=engg387_xxxxxxxx_testi_q4 (x, y) Inputs: data vectors x, y Outputs: scalars x1, x2 where Assign the variable id to be your student number, and then compute mod(fix(id/2),3) If mod(fix(id/2).3) is 0 If mod(fix(id/2).3) is 7 if mod(fix(id/2),3) is 2 X1, X2 are the values of x x1, x2 are the values of x xi is the value of x where y where y is zero, ordered where y is zero, ordered is at its maximum, and x2 is such that x x2 such that X125X2. the distance between the values of x where y is zero. ...... Problem 4 10 points The data vectors x and y represent noisy coordinates for horizontal position and height, respectively, of a particle following a parabolic trajectory. Compute the two values of x at which y is expected to be zero, based on fitting the trajectory to a parabola by least squares. Template for the function header: [x1, x2]=engg387_xxxxxxxx_testi_q4 (x, y) Inputs: data vectors x, y Outputs: scalars x1, x2 where Assign the variable id to be your student number, and then compute mod(fix(id/2),3) If mod(fix(id/2).3) is 0 If mod(fix(id/2).3) is 7 if mod(fix(id/2),3) is 2 X1, X2 are the values of x x1, x2 are the values of x xi is the value of x where y where y is zero, ordered where y is zero, ordered is at its maximum, and x2 is such that x x2 such that X125X2. the distance between the values of x where y is zero
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
