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
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
ADVERTISEMENT