matlab程序参数怎么得到
没有matlab软件,帮忙运行下,谢谢啊x=[440,550,589.3,632.8,680];y=[39.12,39.99,40.11,41.13,41.47];p=p...
没有matlab软件,帮忙运行下,谢谢啊x=[440,550,589.3,632.8,680];
y=[39.12,39.99,40.11,41.13,41.47];
p = polyfit(x,y,2)
X=400:0.05:700;
y2=(polyval(p,X));
plot(x,y,'b*',X,y2);
grid on
xlabel('波长(nm)')
ylabel('像距(cm)') 展开
y=[39.12,39.99,40.11,41.13,41.47];
p = polyfit(x,y,2)
X=400:0.05:700;
y2=(polyval(p,X));
plot(x,y,'b*',X,y2);
grid on
xlabel('波长(nm)')
ylabel('像距(cm)') 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询