matlab,帮我看看这道题~

来源:学生作业帮助网 编辑:作业帮 时间:2024/03/29 02:30:56
matlab,帮我看看这道题~

matlab,帮我看看这道题~
matlab,帮我看看这道题~

matlab,帮我看看这道题~
x=[1 11 21 31 41 51 61 71 81 91 101];
Lgx=[0 1.0414 1.3222 1.4914 1.6128 1.7076 1.7853 1.8513 1.9085 1.959 2.0043];
p=polyfit(x,Lgx,5);
fitx=1:0.1:101;
fity=polyval(p,fitx);
plot(x,Lgx,'ro');hold on;
plot(fitx,log(fitx)/log(10),'r-');
plot(fitx,fity,'k-');hold off;