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 03:00
If a spring has a k value of 100 newtons per meter and it is stretched 0.50 meters, what is the restoring force of the spring?
Answers: 2
question
Physics, 22.06.2019 08:00
Who was the first scientist to measure speed as distance over time?
Answers: 1
question
Physics, 22.06.2019 10:20
Electromagnetic induction. a coil of wire contains n turns and has an electrical resistance r. the radius of each turn is a. initially, inside the coil there exists a uniform magnetic field of magnitude b0 parallel to the axis of the coil. the magnetic field is then reduced slowly. the current induced in the coil is i. how long does it take for the magnitude of the uniform field to drop to zero?
Answers: 1
question
Physics, 22.06.2019 16:40
The force needed to overcome static friction is usually less than that needed to overcome kinetic friction.true or false?
Answers: 1
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
English, 30.04.2021 23:50
Questions on the website: 13722360