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]
2 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]2 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
E) the time it takes the car to reach 20.0ms-1​
Galina-37 [17]
4.2 thats the answer
8 0
2 years ago
Is calculating the change of velocity the same as calculating acceleration? ​
koban [17]

Answer:

Yes! Thinking about it graphically a position vs time graph models meters per second in most cases, making every point on the line have the units m/s. If we want the find the slope we are finding the change between each point and those units would change to m/s/s or m/s^2 giving us the same units for acceleration. Simply put, slope of a velocity graph gives us acceleration.

Explanation:

4 0
2 years ago
A projectile has an initial horizontal velocity of 34.0 M/s at the edge of a roof top. Find the horizontal and vertical componen
Sveta_85 [38]

Answer:

v_x=34 m/s

v_y=53.9\ m/s

Explanation:

<u>Horizontal Launch</u>

When an object is thrown horizontally with a speed v from a height h, it describes a curved path ruled by gravity until it eventually hits the ground.

The horizontal component of the velocity is always constant because no acceleration acts in that direction, thus:

vx=v

The vertical component of the velocity changes in time because gravity makes the object fall at increasing speed given by:

v_y=g.t

The horizontal component of the velocity is always the same:

v_x=34 m/s

The vertical component at t=5.5 s is:

v_y=9.8*5.5=53.9

v_y=53.9\ m/s

8 0
2 years ago
You push a desk with 245 N, but the desk doesn't move due to its friction with the ground. What is the magnitude of the friction
const2013 [10]

If the desk doesn't move, then it's not accelerating.

If it's not accelerating, then the net force on it is zero.

If the net force on it is zero, then any forces on it are balanced.

If there are only two forces on it and they're balanced, then they have equal strengths, and they point in opposite directions.

So the friction on the desk must be equal to your<em> 245N</em> .

7 0
3 years ago
BEST ANSWER GETS BRAINLIEST!!!!!!!!!!
denis-greek [22]

Answer:

There are Microwaves, the type of electro magnetic radiation is a Micro-wave. We use x-rays, the type of electro magnetic radiation is a gamma wave. We also use radios, the type of electro magnetic radiation is a radio wave.

Explanation:

I remember doing this assignment too

8 0
2 years ago
Other questions:
  • Explain why an iron nail that is stuck to a magnet can pick up a paperclip
    10·2 answers
  • The speed of an electromagnetic wave is equal to
    5·1 answer
  • Jeff is part of a trekking team. As he climbs a hill, he drops his water bottle, which has a mass of 0.25 kilograms. The bottle
    14·2 answers
  • a woman weighing 500 N glides across some ice, starting her glide with a speed of 4.00 m/s. if the coefficient of friction betwe
    7·1 answer
  • Please help! <br><br><br> How did Jessica Kusher create her new material?
    6·2 answers
  • Exposure to what type of radiant energy is sensed by human skin as warmth?
    10·2 answers
  • To hear a train approaching from far away, why is it more convenient to put the ear to the track?
    14·1 answer
  • A resistor R and a capacitor C are connected in series to a battery of terminal voltage V0. Which of the following equations rel
    7·1 answer
  • Two charged objects have a repulsive force of 0.050 N. If the charge of both of the objects is doubled, then what is the new for
    11·1 answer
  • Vector A has a magnitude of 25 units and points in the positive y-direction. When vector B is added to A, the resultant vector A
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!