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
A chair of weight 125 N lies atop a horizontal floor; the floor is not frictionless. You push on the chair with a force of F = 3
iris [78.8K]

Answer:

N = 148.10N

Explanation:

GIVEN

Weight =125 N

force = 35

angle =42°

since there is no vertical acceleration a_{y} = 0 from

free body diagram

\Sigma fa_{y} = ma_{y} = 0

N-W-Fsin42\degree = 0\\\\N= W+Fsin42\\N = 125+35\times 0.66\\N = 148.10 N

5 0
3 years ago
a body dropped from a height reaches a velocity of 13m/s just before touching the ground. What is the initial height of the ball
SashulF [63]

Hi there!

We can use the following (derived) equation to solve for the final velocity given height:

vf = √2gh

We can rearrange to solve for height:

vf² = 2gh

vf²/2g = h

Plug in the given values (g = 9.81 m/s²)

(13)²/2(9.81) = 8.614 m

We can calculate time using the equation:

vf = vi + at, where:

vi = initial velocity (since dropped from rest, = 0 m/s)

a = acceleration (in this instance, due to gravity)

Plug in values:

13 = at

13/a = t

13/9.81 = 1.325 sec

5 0
2 years ago
To understand the formula for power radiated in the form of electromagnetic energy by an object at nonzero temperature. every ob
lbvjy [14]

As per Stefan - Boltzmann law we know that

1. Power radiated in the form of electromagnetic energy by an object at nonzero temperature.

2. Every object at absolute (kelvin) temperature t will radiate electromagnetic waves.

3. This radiation is typically in the infrared for objects at room temperature, with some visible light emitted for objects heated above 1000 k.

4. The formula governing the rate of energy radiation from a surface is given by p=eσat^4,

where p is the thermal power (also known as the heat current h).

Thermal radiation in visible light can be seen on hot metalwork. Its emission in the infrared is invisible to the human eye. Infrared cameras are capable of capturing this infrared emission.

Thermal radiation is electromagnetic radiation generated by the thermal motion of charged particles in matter. All matter with a temperature greater than absolute zero emits thermal radiation. Particle motion results in charge-acceleration or dipole oscillation which produce electromagnetic radiation.

Examples of thermal radiation include the visible light and infrared light emitted by an incandescent light bulb, the infrared radiation emitted by animals that is detectable with an infrared camera, and the cosmic microwave background radiation. Thermal radiation is different from thermal convection and thermal conduction—a person near a raging bonfire feels radiant heating from the fire, even if the surrounding air is very cold.

Sunlight is part of thermal radiation generated by the hot plasma of the Sun. The Earth also emits thermal radiation, but at a much lower intensity and different spectral distribution. The Earth's absorption of solar radiation, followed by its outgoing thermal radiation, are the two most important processes that determine the temperature and climate of the Earth in most climate models.

So the correct answer which is applicable here will be

This formula applies to any object of total surface area a, kelvin temperature t, and emissivity e

here

\sigma[\tex] = stefan boltzmann constant = [tex]5.67 * 10^{-8}

3 0
3 years ago
F.r.e.e points :]]] ​
Colt1911 [192]
Ok? I don’t know what you want me to do though
4 0
3 years ago
Read 2 more answers
a 2.35 water bucket is swung in a full cirlce of radius 0.824 m just fast enough so that the water doesn't fall out the top mean
tiny-mole [99]

Answer:

2.84 m/s

Explanation:

At the top position of the circular trajectory, the normal reaction is zero:

N = 0

So it means that the only force that is providing the centripetal force is the gravitational force (the weight of the bucket). Therefore we have:

mg = m \frac{v^2}{r}

where

m is the mass of the water bucket

g = 9.8 m/s^2 is the acceleration of gravity

v is the speed of the bucket

r = 0.824 m is the radius of the circle

Solving for v,

v=\sqrt{gr}=\sqrt{(9.8 m/s^2)(0.824 m)}=2.84 m/s

4 0
3 years ago
Other questions:
  • What does potential mean in science?
    9·2 answers
  • All indicate that the universe is
    15·2 answers
  • 3. A force of 200 N is applied to an object of area 2 sq.m . the pressure will be<br>​
    13·2 answers
  • An atom of sodium-23 (atomic number = 11) has a positive charge of +1. Given this information, how many
    6·1 answer
  • A 10-turn coil of wire having a diameter of 1.0 cm and a resistance of 0.30 Ω is in a 1.0 mT magnetic field, with the coil orien
    12·1 answer
  • Why can some electric appliances be immersed in water without damage?
    7·2 answers
  • How much heat is needed to melt 1.5kg of ice and then to raise the temperature of the
    15·1 answer
  • The table above lists the wavelength range, frequency range, possible uses, and hazards of the seven types of electromagnetic ra
    8·1 answer
  • The electrical loads in _____ circuits each have the same voltage drop, with equals the total applied voltage of the circuit.
    15·1 answer
  • The average reaction time is 1.5 seconds?<br><br> True<br> False
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!