Question
MATLAB CODE
Conc. (mo/I). Time (days) 0.4 0.8 1.2 1.6 2 2.3 750 1000 1400 2000 2700 3750
Now use Matlab to generate the polynomial fits for 2 through 5 order polynomials. Plot the fitted lines with an interval of 0
0 0
Add a comment Improve this question Transcribed image text
Answer #1

`Hey,

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

clc%clears screen
clear all%clears history
close all%closes all files
format long
t=[0.4,0.8,1.2,1.6,2,2.3];
c=[750,1000,1400,2000,2700,3750];
hold on;
plot(t,c,'o');
for i=2:5
C=polyfit(t,c,i);
x=0:0.1:2.7;
y=polyval(C,x);
plot(x,y,'--');
end
xlabel('time');
ylabel('Concentration');
title('Polynomial curve fits');
legend('observation','second order','third order','fourth order','fifth order','Location','NorthWest');

- 5 x Pradeep - 0 X 56 Search Documentation View Insert Tools EDITOR Figure 1 Insert E. fx Eile Edit Comment % 99 O Indent 1

Kindly revert for any queries

Thanks.

Add a comment
Know the answer?
Add Answer to:
MATLAB CODE Conc. (mo/I). Time (days) 0.4 0.8 1.2 1.6 2 2.3 750 1000 1400 2000...
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