MATLAB: How to find the standard deviation of the linear regression

fitlmMATLAB

I am using fitlm to do a very simple two-variable linear regression: md1 = fitlm(x,y);
Here are my results:
md1 =
Linear regression model:
y ~ 1 + x1
Estimated Coefficients:
Estimate SE tStat pValue
________ __________ ______ ______
(Intercept) 0.14936 0.0022171 67.368 0
x1 0.98095 0.00028117 3488.8 0
Number of observations: 278412, Error degrees of freedom: 278410
Root Mean Squared Error: 0.0203
R-squared: 0.978, Adjusted R-Squared 0.978
F-statistic vs. constant model: 1.22e+07, p-value = 0
So what is my standard deviation?
Thanks!

Best Answer

If you want the standard deviation of the residuals (differences between the regression line and the data at each value of the independent variable), it is:
Root Mean Squared Error: 0.0203
or the square root of the mean of the squared residual values.