能帮我做一道插值与拟合的题吗?一些数据给你打好了temps=20:5:60;press=[805 985 1170 13

能帮我做一道插值与拟合的题吗?

一些数据给你打好了
temps=20:5:60;
press=[805 985 1170 1365 1570 1790 2030 2300 2610];
t=20:3:60;
plot(temps,press,'+')
hantong007 1年前 已收到1个回答 举报

浪漫的飘叶 春芽

共回答了13个问题采纳率:100% 举报

clc;clear
temps=20:5:60;
press=[805 985 1170 1365 1570 1790 2030 2300 2610];
t=20:3:60;
plot(temps,press,'+')
hold on
p=polyfit(temps,press,1);
y=polyval(p,75)
x=linspace(20,60,100);
h=p(1)*x+p(2);
plot(x,h)
P_44=(1790*(44-40)+1570*(45-44))/((45-44)+(44-40))

1年前

9
可能相似的问题
Copyright © 2024 YULUCN.COM - 雨露学习互助 - 17 q. 0.052 s. - webmaster@yulucn.com