Question: Problem 2: In this problem, we want to represent the relationship between the input of a system, x, and its output, y, using a polynomial.

 Problem 2: In this problem, we want to represent the relationship

Problem 2: In this problem, we want to represent the relationship between the input of a system, x, and its output, y, using a polynomial. A set of 21 system measurement data pairs were obtained and saved in the MATLAB file xyg1.mat. To solve this problem, des polyfitsystem.m that has the following requirements: ign and write a MATLAB function named 1. The function must have the following input arguments: a. x containing the input measurement data b. y containing the output measurement data c. R2 the minimum desired coefficient of determination resulting from the curve fitting calculations 2The function must have the following output arguments: a. z containing the coefficients of the fitting polynomial b. N the degree of the polynomial c. R2 the actual coefficient of determination resulting from the curve fitting calculations. To test your function, write a MATLAB script that calls your polyfitsystem function using the provided data and the following examples of minimum desired values for R2-0.950, 0.985, 0.999. Your script must generate the scatter plot using the measurement data and the calculated fitting polynomial for each case, all on the same set of axes. Proper labels and legend must be added. Problem 2: In this problem, we want to represent the relationship between the input of a system, x, and its output, y, using a polynomial. A set of 21 system measurement data pairs were obtained and saved in the MATLAB file xyg1.mat. To solve this problem, des polyfitsystem.m that has the following requirements: ign and write a MATLAB function named 1. The function must have the following input arguments: a. x containing the input measurement data b. y containing the output measurement data c. R2 the minimum desired coefficient of determination resulting from the curve fitting calculations 2The function must have the following output arguments: a. z containing the coefficients of the fitting polynomial b. N the degree of the polynomial c. R2 the actual coefficient of determination resulting from the curve fitting calculations. To test your function, write a MATLAB script that calls your polyfitsystem function using the provided data and the following examples of minimum desired values for R2-0.950, 0.985, 0.999. Your script must generate the scatter plot using the measurement data and the calculated fitting polynomial for each case, all on the same set of axes. Proper labels and legend must be added

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!