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 are the three categories of adult development?
andreev551 [17]
Physical development , Cognitive Development , psychosocial development I think!
5 0
4 years ago
PLS HELP ME<br> How does one stage in a stars life lead to another
Oxana [17]
Just as during formation, when the material contracts, the temperature and pressure increase. This newly generated heat temporarily counteracts the force of gravity, and the outer layers of the star are now pushed outward ( in not sure tho ) I hope this helps
3 0
3 years ago
Read 2 more answers
How fast would a(n) 75 kg man need to run in order to have the same kinetic energy as an 8.0 g bullet fired at 390 m/s
nata0808 [166]

Answer:

Explanation:

½(75)v² = ½(0.008)390²

        v² = (0.008)390²/75

        v² = 16.224

         v = 4.027...

         v = 4.0 m/s

6 0
3 years ago
The maximum allowable potential difference across a 250 mH inductor is 360 V . You need to raise the current through the inducto
andrezito [222]

This question involves the concepts of potential difference, inductance, and current.

The minimum time that should be allowed for the current to change is "0.694 ms".

The inductance of an inductor is given by the following formula:

E=L\frac{\Delta I}{\Delta t}\\

where,

E = potential difference across the inductor = 360 volts

L = inductance of the inductor = 250 mH = 0.25 H

ΔI = change in current = 2.5 A - 1.5 A = 1 A

Δt = time required = ?

Therefore,

\Delta t = \frac{(0.25\ H)(1\ A)}{360\ volts}

<u>Δt = 6.94 x 10⁻⁴ s = 0.694 ms</u>

<u></u>

Learn more about inductance here:

brainly.com/question/17431388?referrer=searchResults

<u></u>

7 0
3 years ago
A 1000-kg car is driving toward the north along a straight horizontal road at a speed of 20.0 m/s. The driver applies the brakes
OlgaM077 [116]

Answer:

Explanation:

mass of car, m = 1000 kg

initial velocity, u = 20 m/s

final velocity, v = 0 m/s

distance, s = 120 m

Let a be the acceleration of motion

use third equation of motion

v² = u² + 2 as

0 = 20 x 20 + 2 x a x 120

a = - 1.67 m/s²

Let F be the force

Force, F  mass x acceleration

F = - 1000 x 1.67

F = - 1666.67 N

The direction of force is towards south and the magnitude of force is 1666.67 N.

8 0
3 years ago
Other questions:
  • A small jet airplane has a total wing area of 77.5 m2 and a mass of 7.23 104 kg. (a) If this jet is in horizontal flight, determ
    14·1 answer
  • A polonium isotope with an atomic mass of 211.988868 u undergoes alpha decay, resulting in a daughter isotope with an atomic mas
    14·1 answer
  • calculate the density of a neutron star with a radius 1.05 x10^4 m, assuming the mass is distributed uniformly. Treat the neutro
    9·1 answer
  • Consider two capacitors with unequal capacitance connected in parallel to a battery. Which of the following statements are true?
    5·1 answer
  • A cannon ball is launched off a 100 m cliff horizontally with an initial horizontal velocity (Vx) of 50 m/s.
    10·1 answer
  • a racing car undergoes a uniform acceleration of 4.00m/s2. if the net force causing the acceleration is 3.00 times 10^3 N, what
    9·1 answer
  • A flat sheet is in the shape of a rectangle with sides of lengths 0.400 m and 0.600 m. The sheet is immersed in a uniform electr
    6·1 answer
  • A thunderstorm starts to form when water evaporates to form clouds. Which of the following best explains why thunderstorms usual
    6·1 answer
  • two children of masses m1 = m2 = 20 kg , ride on the perimeter of a small merry-go- round . the merry -go-round us a disk of mas
    12·1 answer
  • When you have a straight horizontal line on a velocity time graph, what does this tell you about the object’s motion in terms of
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!