So you want to fit y as a function of t, right? Use. p = polyfit(t,y,2);. fit = polyval(p,t);. plot(u,g,'-',t,y,'o',t,fit). The first line is the built-in ...
確定! 回上一頁