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
What is a car doing as it rounds a curve
andriy [413]

Answer:

its direction is changing

4 0
3 years ago
How does the molecular structure of a water molecule affect its polarity?
MA_775_DIABLO [31]

Answer:

The polarity of water molecules means that molecules of water will stick to each other like when unlike charges attracts. This is called hydrogen bonding.

Polarity makes water a good solvent, gives it the ability to stick to itself (cohesion), stick to other substances (adhesion), and have surface tension (due to hydrogen bonding).

When the two hydrogen atoms bond with the oxygen, they attach to the top of the molecule. This molecular structure gives the water molecule polarity, or a lopsided electrical charge that attracts other atoms. The end of the molecule with the two hydrogen atoms is positively charged.

Explanation:

4 0
3 years ago
Read 2 more answers
Uses of solar cells ?
Damm [24]

Solar cells are used to trap sunlight energy (light energy) and convert it to electric energy for domestic and other purposes.

7 0
3 years ago
What is the kinetic energy of a an 80kg football player running at 8 m/s?
Ugo [173]
In the question it is already given that the football player is 80 kg.
Then the mass of the football player = 80 kg
Velocity at which the football player is running = 8 m/s
<span>Kinetic Energy = 0.5 • mass • square of velocity
Now we have to put the known data in this equation to find the actual velocity of the footballer.
</span> <span></span>So
Kinetic Energy of the footballer = 0.5 * 80 * (8 * 8)
                                                 = 0.5 * 80 * 64
                                                 = 2560
So the Kinetic energy of the footballer is 2560 joules


4 0
3 years ago
Which structure reduces friction between joints?
Roman55 [17]

Answer:

The cartilage is the structure that reduces friction between joints.

Explanation:

Cartilage is the tissue between the bone joints. They are composed of several membranes and cellular groups. One of them called synovial membrane which provides lubricant to the edges of tissue that are touched by the bones. Reducing the friction and absorbing it so the body can move without obstacles.

3 0
3 years ago
Other questions:
  • Your pencil is 11 cm long . How long is it in millimeters?
    7·1 answer
  • Helium is before lithium on the periodic table because the periodic table arranges elements by increasing ________.
    15·2 answers
  • In his famous experiment, Rutherford fired alpha particles at a thin gold film. Most of the alpha particles went through the fir
    9·1 answer
  • The key to making a concise mathematical definition of escape velocity is to consider the energy. If an object is launched at it
    7·1 answer
  • Which of the following types of stars is the coolest? In Graph A, the curve peaks at 800 nm, in the red section of the visible l
    5·2 answers
  • Tần số ngưỡng của một kim loại có giá trị X. Nếu tần số của chùm sáng chiếu đến bề mặt katot tăng từ 2X đến 4X thì cường độ dòng
    13·1 answer
  • What is gama rays an it's uses​
    15·1 answer
  • How would the model change as the atom forms bonds? The third shell would have eight electrons after the atom gains seven electr
    6·2 answers
  • An object of mass m is oscillating back and forth in simple harmonic motion. The maximum origin, x = 0, and moving in the x dire
    12·1 answer
  • Does solid give out or take in energy when it melts?
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!