1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
abruzzese [7]
3 years ago
10

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
Physics
1 answer:
alexandr402 [8]3 years ago
5 0

Answer:

clc

clear all

close all

format long

A=load('xyg1.mat');

x=A(:,1);

y=A(:,2);

[z,N,R2]=polyfitsystem(x,y,0.95)

function [z,N,R2]=polyfitsystem(x,y,R2)

for N=1:20

z=polyfit(x,y,N);

SSR=sum((y-polyval(z,x)).^2);

SST=sum((y-mean(y)).^2);

s=1-SSR/SST;

if(s>=R2)

R2=s;

break;

end

end

xx=linspace(min(x),max(x));

plot(x,y,'o',xx,polyval(z,x));

xlabel('x');

ylabel('y(x)');

title('Plot of y vs x');

end

Explanation:

You might be interested in
10. The shape of the earth is<br> A taco<br> b. A carrot<br> C. A sphere<br> d. A potato
expeople1 [14]

Answer:

C. A sphere.

Explanation:

I'm 100% sure.

6 0
3 years ago
. A magnetic field has a magnitude of 0.078 T and is uniform over a circular surface whose radius is 0.10 m. The field is orient
Dmitriy789 [7]

Answer:

The magnetic flux through surface is 2.22 \times 10^{-3} Wb

Explanation:

Given :

Magnitude of magnetic field B = 0.078 T

Radius of circle r = 0.10 m

Angle between field and surface normal \theta = 25°

From the formula of flux,

\phi = B.A

\phi = BA\cos \theta

Where \theta = angle between magnetic field line and surface normal, A = area of circular surface.

A = \pi r^{2}

A = 3.14 \times (0.10) ^{2}

A = 0.0314 m^{2}

Magnetic flux is given by,

\phi = 0.078 \times 0.0314 \times \cos 25

\phi = 2.22 \times 10^{-3} Wb

Therefore, the magnetic flux through surface is 2.22 \times 10^{-3} Wb

6 0
3 years ago
HELP PLEASE <br> THANK YOU!!
Simora [160]
Kelvin is the answer
4 0
3 years ago
Read 2 more answers
How are energy, force, and the motion of objects related?
OLEGan [10]

Answer:

When two objects interact, each one exerts a force on the other that can cause energy to be transferred to or from the object. For example, when energy is transferred to an Earth-object system as an object is raised, the gravitational field energy of the system increases. This energy is released as the object falls; the mechanism of this release is the gravitational force. Likewise, two magnetic and electrically charged objects interacting at a distance exert forces on each other that can transfer energy between the interacting objects.

Explanation:

Even when an object is sitting still, it has energy stored inside that can be turned into kinetic energy (motion). ... A force is a push or pull that causes an object to move, change direction, change speed, or stop. Without a force, an object that is moving will continue to move and an object at rest will remain at rest.

5 0
3 years ago
Read 2 more answers
Peering through a telescope could be considered Step 1 of the scientific method.<br> True<br> False
aleksklad [387]

Answer:

<em><u>True:</u></em> because when u look thru a telescope you are making an observation

Explanation:

4 0
2 years ago
Read 2 more answers
Other questions:
  • How does the electron-cloud model describe electrons?
    14·1 answer
  • At a constant temperature, the volume of a gas doubles when the pressure is reduced to half of its original value. This is a sta
    5·2 answers
  • Waves must exhibit a constant phase difference for interference to occur. Please select the best answer from the choices provide
    6·1 answer
  • A man is traveling on a bicycle at 14 m/s along a straight road that runs parallel to some railroad tracks. He hears the whistle
    15·1 answer
  • Use Poiseuille's Law to calculate the rate of flow in a small human artery where we can take η = 0.028, R = 0.008 cm, l = 2 cm,
    6·1 answer
  • How do asteroids and comets differ?
    14·1 answer
  • What are the three most influential variables that affect electrical force?
    13·1 answer
  • Would the following reaction be endothermic or exothermic? Why?
    15·1 answer
  • If you put 3.27 moles of an ideal
    15·2 answers
  • A 40.0 kg beam is attached to a wall with a hi.nge and its far end is supported by a cable. The angle between the beam and the c
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!