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 09:30
Asap i'm in class rn a 1,000-kg car is traveling 20 m/s on a flat stretch of road. it gets to a hill and coasts uphill until it stops. how high up the hill does the car travel? givens: equation: 1/2mv2initial=mghfinal solve for h. plug & chug, label.
Answers: 2
question
Physics, 22.06.2019 12:10
Ablock having mass m slides down an inclined plane. the force of friction between the block and the inclined plane is f, the block's weight is m g, and the normal force is n. (a) draw a free – body force diagram showing the forces acting on the block. (b) write down all relevant newton’s equations for a given situation.
Answers: 1
question
Physics, 22.06.2019 22:00
Four friends, a, b, c, and d are standing varying distances away from a speaker which is producing sound waves.
Answers: 2
question
Physics, 22.06.2019 22:50
Cyclotrons are widely used in nuclear medicine for producing short-lived radioactive isotopes. these cyclotrons typically accelerate h- (the hydride ion, which has one proton and two electrons) to an energy of 5 mev to 20 mev. this ion has a mass very close to that of a proton because the electron mass is negligible—about 1 2000 of the proton’s mass. a typical magnetic field in such cyclotrons is 1.9 t. (a) what is the speed of a 5.0-mev h-? (b) if the h- has energy 5.0 mev and b = 1.9 t, what is the radius of this ion’s circular orbit?
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, 04.11.2019 22:31
question
Mathematics, 04.11.2019 22:31
question
Mathematics, 04.11.2019 22:31
Questions on the website: 13722362