subject
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

ansver
Answers: 2

Another question on Physics

question
Physics, 22.06.2019 01:40
Lin yao looks at the back of a spoon. how should she describe her reflection? upside down and smaller upside down and larger right-side up and smaller right-side up and larger
Answers: 1
question
Physics, 22.06.2019 12:00
The mass of a bowling ball is 10 kg and the mass of a ping pong ball is 0.015 kg. if the two objects are 5 meters apart, what is the gravitational force ?
Answers: 1
question
Physics, 23.06.2019 01:30
Aball is thrown vertically upwards from the top of a tower with a speed of 100m/s.it strikes the pound near the base of the tower after 25sec . the height of the tower is
Answers: 3
question
Physics, 23.06.2019 02:30
Acircular ring of charge with radius b has total charge q uniformly distributed around it. what is the magnitude of the electric field at the center of the ring? 0 keq/b2 keq2/b2 keq2/b none of these answers
Answers: 3
You know the right answer?
In this problem, we want to represent the relationship between the input of a system, x, and its out...
Questions
question
Mathematics, 20.07.2019 02:00