Physics
Physics, 06.05.2020 05:20, markmoroney22

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, design and write a MATLAB function named polyfitsystem. m that has the following requirements:

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

2. The 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.

You may use the MATLAB built-in functions polyfit and polyval inside your user-defined function polyfitsystem.

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

answer
Answers: 2

Other questions on the subject: Physics

image
Physics, 21.06.2019 22:40, mtassy85
Um vetor representa um deslocamento cujo módulo é 20 m. se v faz um ângulo de 60 graus com a horizontal, qual é o valor das componentes horizontal e vertical deste vetor?
Answers: 2
image
Physics, 22.06.2019 04:30, johnkings140
The image shows the positions of a car on a roller coaster track. arrange the cars in order based on their gravitational potential energy. begin with the lowest potential energy and end with the highest.
Answers: 1
image
Physics, 22.06.2019 17:00, nathanb126
The force it would take to accelerate an 900-kg car at the rate of 6m/s2
Answers: 1
image
Physics, 22.06.2019 19:30, ayoismeisjjjjuan
Which type of energy would have nothing to do with ironing clothes? a. heat b. chemical c. electrical d. mechanical
Answers: 1
Do you know the correct answer?
In this problem, we want to represent the relationship between the input of a system, x, and its out...

Questions in other subjects: