发布网友
共1个回答
热心网友
clear;close;clc;
x=[1 2 3 4 6 7 8];
y=[2 3 6 7 5 3 2];
p=polyfit(x,y,3);
f=polyval(p,x);
plot(x,f,'-b')