Professional Documents
Culture Documents
Anuj Jagannath Said Me21b172 Tut 09
Anuj Jagannath Said Me21b172 Tut 09
N=1000;
x1=2.4+.31*randn(N,1);
x2=5.2+.5*randn(N,1);
x3=3.6+.22*randn(N,1);
y=8*x1+4.3*x2+2.5*x3;
y_noise=awgn(y,10);
X=[x1,x2,x3];
mdl=fitlm(X,y_noise)
mdl =
Linear regression model:
y ~ 1 + x1 + x2 + x3
Estimated Coefficients:
Estimate SE tStat pValue
________ ________ _______ __________
plot(mdl)
1
2