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, 23.06.2019 01:00
Use vsepr theory to predict the molecular geometry of the molecule hcn.
Answers: 3
question
Physics, 23.06.2019 02:00
Estimate the kinetic energy of mars with respect to the sun as the sum of two terms, that due to its daily rotation about its axis, and that due to its yearly revolution about the sun. (assume mars is a uniform sphere with mass = 6.4×10 to the power of 23 kg, radius = 3.4×10 to the power of 6 m, rotation period = 24.7 hours, orbital period = 686 days and is 2.3×10 to the power of 8 km from the sun.)
Answers: 2
question
Physics, 23.06.2019 02:30
There are multiple tuning forks present in the room, and annie strikes one with a natural frequency of 400 hz. which of these other tuning forks will begin to vibrate through resonance and make the sound louder? a 200 hz tuning fork a 400 hz tuning fork a 800 hz tuning fork a 1600 hz tuning fork
Answers: 1
question
Physics, 23.06.2019 02:50
You are still fascinated by the process of inkjet printing, as described in the opening storyline for this chapter. you convince your father to take you to his manufacturing facility to see the machines that print expiration dates on eggs. you strike up a conversation with the technician operating the machine. he tells you that the ink drops are created using a piezoelectric crystal, acoustic waves, and the plateau-rayleigh instability, which creates uniform drops of mass m = 1.25 ✕ 10−8 g. while you don't understand the fancy words, you do recognize mass! the technician also tells you that the drops are charged to a controllable value of q and then projected vertically downward between parallel deflecting plates at a constant terminal speed of 20.0 m/s. the plates are ℓ = 2.15 cm long and have a uniform electric field of magnitude e = 6.40 ✕ 104 n/c between them. noting your interest in the process, the technician asks you, "if the position on the egg at which the drop is to be deposited requires that its deflection at the bottom end of the plates be 0.17 mm, what is the required charge on the drop (in c)? " you quickly get to work to find the answer. (neglect the force of gravity.)
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
Questions on the website: 13722367