??? Error: File: C:\MATLAB7\work\Untitled.m Line: 4 Column: 5
Incomplete or misformed expression or statement.
x=[19 25 31 38 44];
y=[19.0 32.3 49.0 73.3 97.8];
x1=x.^2
x1 =
361 625 961 1444
x1=[ones(5,1),x1']
x1 =
1 361
1 625
1 961
1 1444
1 1936
ab=x1\y'
ab =
0.9726
0.0500
x0=[19:0.2:44];
y0=ab(1)+ab(2)*x0.^2;
%绘制图形
clf
plot(x,y,'o')
hold on
plot(x0,y0,'- r')