& gt& gt? x? =? [46? 49? 5 1? 52? 54? 56? 57? 58? 59? 60? 6 1? 62? 63? 64? 66? 67? 68? 7 1? 72];
& gt& gt? y? =? [40? 50? 55? 63? 72? 70? 77? 73? 90? 93? 96? 88? 99? 1 10? 1 13? 120? 127? 127? 132];
& gt& gt? Plot(x, y,' o') observation shows that it is approximately linear, so polynomial fitting is used.
& gt& gt? p? =? polyfit(x,y, 1)
p? =
3.6995? -13 1.9833, that is, the fitting result is y = 3.6555x-131.9833.
Draw a fitting curve
& gt& gt? Keep? exist
& gt& gt? plot(x,polyval(p,x),' g ')
& gt& gt? Grid? exist