Question
I want the solution as programm and I need the steps of solution
c floted 4. The following points are given X 1 4 5 6 7 8 10 Y 2 3 11 13 17 22 26 25 37 40 Fit the data with a power and expon


. Poyft(P) a- Poly fit e (P use Poly fit
c floted 4. The following points are given X 1 4 5 6 7 8 10 Y 2 3 11 13 17 22 26 25 37 40 Fit the data with a power and exponential functions, Make a plot of the points an the new functions.
. Poyft(P) a- Poly fit e (P use Poly fit
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Hello,
       Please find the answer attached below. If the answer has helped you please give a thumbs up rating. Thank you and have a nice day!

NOTE: The polyfit function does not do the exponential fitting of data. It only does a polynomial fitting. For the exponential fitting you need to use the fit function, which is licensed separately.

************** Matlab program *************

%%%%%%%% power function fit
x = 1:10;
y = [2 3 11 13 17 22 26 25 37 40];
n = 5;
p = polyfit(x,y,n)

x1 = linspace(1,10);
y1 = polyval(p,x1);
figure
plot(x,y,'o')
hold on
plot(x1,y1)
hold off

*********** End of program **********

Output:


*************************************************************
PS: Please do not forget the thumbs up!!

Add a comment
Know the answer?
Add Answer to:
I want the solution as programm and I need the steps of solution c floted 4. The following points are given X 1...
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. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • 17. Given the function f(x) = ? answer the following questions: [4 Points] x+1 (a) What...

    17. Given the function f(x) = ? answer the following questions: [4 Points] x+1 (a) What is the inverse function f-(x)? Show all work that leads to the final answer. (b) What is the Range of f-1(x)? 18. Determine whether the following functions represent linear data, exponential data or neither. [4 Points). f(x) х -1 g(x) 5 1 0 16 1 4 1 4 Х -1 0 1 2 3 o 2 7 1 2 3 16 Linear, Exponential or...

  • Can I get the solution for question 18? This is all . There is no more...

    Can I get the solution for question 18? This is all . There is no more information. 16 y | 100 15. * 1-20 y | 100 95 91 -17 -15 120 118 83 -14 130 70 -10 140 Applications 17. Consumption and Disposable Income An economist wishes to estimate a line that relates personal consumption expenditures C and disposable income I. Both C and I are in thousands of dollars. She interviews eight heads of households for families of...

  • At times t = 1, 2, 3, 4, 5, and 6 seconds, data values yt =...

    At times t = 1, 2, 3, 4, 5, and 6 seconds, data values yt = 3, 7, 17, 37, 82, and 182 are recorded. a.) Plot the data. (In MATLAB, after storing the t and y values in vectors, use plot(t,y,'o').) From this graph, do you think a linear, exponential, or power function is the best model for the data? b. Produce a semilog plot and use it to roughly estimate the growth rate k for a model of...

  • 3. The set of the following data points is given days x 14 22 30 y...

    3. The set of the following data points is given days x 14 22 30 y 320 490 540 38 380 (a) Determine the natural cubic splines that fit the data. (b) Determine the clamped-clamped splines that fit the data (e) Determine the interpolated value of y for x = 27 both from (a) and (b). (d) Plot of the data points and the interpolating polynomials.

  • Sample Data Sample Data Hour Sample Taken Hour Sample Taken 1 4 5 X 1 3...

    Sample Data Sample Data Hour Sample Taken Hour Sample Taken 1 4 5 X 1 3 1 42 2 3 4 5 6 2 39 36 25 60 28 53 22 56 41 34 43 45 59 42 36 40 45 39 48 26 42 34 61 48 45 29 3 31 61 38 40 54 26 38 42 37 41 53 37 47 41 37 29 20 26 43 38 33 37 37 35 33 36 41 25 37...

  • Problem 3 You are given the following data: 510 15 20 25 30 35 40 45 50 Y 17 24 31 33 37 37 40 40 42 41 a. Use line...

    Problem 3 You are given the following data: 510 15 20 25 30 35 40 45 50 Y 17 24 31 33 37 37 40 40 42 41 a. Use linear regression to fit a straight line, a parabola, and a cubic function to the data b. Plot the data and the different curves on the same plot c. What are the errors associated with the derived parameters for the different curves? d. Which curve best aligns with the given...

  • 10. (12 points) The arrays price A, price B and price C given below contain the...

    10. (12 points) The arrays price A, price B and price C given below contain the price in dollars of the three stocks over 10 days. price A = [19, 18, 22, 21, 25, 19, 17, 21, 27, 29] price B = [22, 17, 23, 24, 18, 16, 25, 28, 27, 27] price C = [10, 11, 12, 13, 19, 17, 20, 21, 24, 28] For the stock data, write a MATLAB code to plot the stock price vs. days...

  • mathlab 10. (12 points) The arrays price A, price B and price C given below contain...

    mathlab 10. (12 points) The arrays price A, price B and price C given below contain the price in dollars of the three stocks over 10 days. price A = [19, 18, 22, 21, 25, 19, 17, 21, 27, 29) price B = [22, 17, 23, 24, 18, 16, 25, 28, 27, 27] price C - [10, 11, 12, 13, 19, 17, 20, 21, 24, 28) For the stock data, write a MATLAB code to plot the stock price vs....

  • Game   Point_Differential   Assists   Rebounds   Turnovers   Personal_Fouls 1   15   15   38   11   9 2   36   20   43 &

    Game   Point_Differential   Assists   Rebounds   Turnovers   Personal_Fouls 1   15   15   38   11   9 2   36   20   43   8   13 3   16   21   29   7   13 4   45   22   46   11   11 5   12   11   40   7   22 6   -10   10   31   13   26 7   11   19   45   11   7 8   12   16   32   16   14 9   3   16   27   18   15 10   19   9   34   17   17 11   40   16   41   9   17 12   44   12   29   9   22 13   16  ...

  • i dint think the answer is corect. Catistics, E... X - JJ Prepare a stem-and-leaf display...

    i dint think the answer is corect. Catistics, E... X - JJ Prepare a stem-and-leaf display for these data. Arrange the leaves for each stem in increasing order. Prepare a split stem-and-leaf display for these data. Split each stem into two parts. The first part should contain the contain the leaves 5 through 9. 29 The following data give the one-way commuting times (in minutes) from home to work for a random sample of 50 23 17 34 26 18...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT