Question

MATLAB y=m/(x^2+bx+c) x= 1:10; y=[0.593 0.338 0.216 0.15 0.109 0.084 0.066 0.053 0.044 0.037]; use polyfit...

MATLAB

y=m/(x^2+bx+c)

x= 1:10;

y=[0.593 0.338 0.216 0.15 0.109 0.084 0.066 0.053 0.044 0.037];

use polyfit to draw a graph

find m,b,c

Homework Answers

Answer #1

`Hey,

Note: If you have any queries related to the answer please do comment. I would be very happy to resolve all your queries.

clc

clear all

close all

format short

x= 1:10;

y=[0.593 0.338 0.216 0.15 0.109 0.084 0.066 0.053 0.044 0.037];

A=[x(:).^2 x(:) ones(numel(x),1)];

b=1./y(:);

C=A\b;

m=1/C(1)

b=C(2)*m

c=C(3)*m

f=@(x) m./(x.^2+b*x+c);

xx=1:0.01:10;

yy=f(xx);

plot(xx,yy,x,y,'o');

xlabel('x');

ylabel('y');

title('Plot of x vs y');

legend('Fit','Data');

Kindly revert for any queries

Thanks.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Use MATLAB to find the best a, b, and c coefficients for curve y=a*(sqrt(x)/x)+bx+c to fit...
Use MATLAB to find the best a, b, and c coefficients for curve y=a*(sqrt(x)/x)+bx+c to fit these data points: (x,y)=[(0.1 2.5) (1.2 1.64) (2.1 1.67) (3.35 1.81) (4.5 1.9)] Use fprintf to show the a,b,c values you obtained, also plot the points and fitted curve in one plot (use proper labels.)
dx/dt = 1 - (b+1) x + a x^2 y dy/dt = bx - a x^2...
dx/dt = 1 - (b+1) x + a x^2 y dy/dt = bx - a x^2 y find all the fixed point and classify them with Jacobian.
Find Domain x-int y-int VA HA Hole Sign graph graph a-) y=1/x2+3x-10 b-) y=x+2/(x+2)(x-3) c-) y=x-1/x2-2x+1...
Find Domain x-int y-int VA HA Hole Sign graph graph a-) y=1/x2+3x-10 b-) y=x+2/(x+2)(x-3) c-) y=x-1/x2-2x+1 d-) y=-2/x
Consider the following table of data. x 1 1 2 2 10 y 3 2 3...
Consider the following table of data. x 1 1 2 2 10 y 3 2 3 2 10 a. Calculate the least squares line and the correlation coefficient. b. Repeat part​ (a), but this time delete the last point. c. Draw a graph of the​ data, and use it to explain the dramatic difference between the answers to parts​ (a) and​ (b).
he equation for a parabola has the form ?=??2+??+?y=ax2+bx+c, where ?a, ?b, and ?c are constants...
he equation for a parabola has the form ?=??2+??+?y=ax2+bx+c, where ?a, ?b, and ?c are constants and ?≠0a≠0. Find an equation for the parabola that passes through the points (−1,−10)(−1,−10), (−2,−1)(−2,−1), and (−3,18)(−3,18).
Using Matlab to solve the problem below Given X=[-2 -1 0 1 2] Y=[1.5 3.2 4.5...
Using Matlab to solve the problem below Given X=[-2 -1 0 1 2] Y=[1.5 3.2 4.5 3.4 2] a). Plot a scatter plot of the data b). Determine the coefficients of the polynomial ?0 + ?1? + ?2?2 which best fits the data c). Plot this function on the same plot as in part ‘a’. USE MATLAB CODE ONLY! USE MATLAB CODE ONLY! THANK YOU
Using MatLab 2. Given the parametric equations x = t^3 - 3t, y = t^2-3: (a)...
Using MatLab 2. Given the parametric equations x = t^3 - 3t, y = t^2-3: (a) Find the points where the tangent line is horizontal or vertical (indicate which in a text line) (b) Plot the curve parametrized by these equations to confirm. (c) Note that the curve crosses itself at the origin. Find the equation of both tangent lines. (d) Find the length of the loop in the graph and the area enclosed by the loop. 3. Use what...
Use logarithmic differentiation to find the derivative of the function. (a) y = (x + 1)^(2)(x...
Use logarithmic differentiation to find the derivative of the function. (a) y = (x + 1)^(2)(x + 2)^(3) (b) y = (x – 1)^(2)(x + 1)^(3)(x + 3)^(4) (c) y = ex (d) y
Solve in Matlab please. An ltic system is specified by the eq: D(D+1) y(t) = (D+2)x(t)...
Solve in Matlab please. An ltic system is specified by the eq: D(D+1) y(t) = (D+2)x(t) a) Find the characteristic polynomial, char. equation, char. roots, and char. modes. b) find y0(t), zero-input component of the response y(t) for t>=o; if initial conditions is y0(0-) =  y'0(0-) = 1
A +1 C charge is placed at position (x,y)=(-2 m,0). A +1.5 C charge is placed...
A +1 C charge is placed at position (x,y)=(-2 m,0). A +1.5 C charge is placed at position (x,y)=(2 m, 0). a)  What is the electric potential energy of this charge configuration? b)  What is the electric field (magnitude and direction) at the origin? c) What is the electric field (magnitude and direction) at position (x,y)=(0 m, 1 m)? Please enter your answers in the space below and email your work.
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT