MATLAB: How can one get t-stat of fitlm as an output

MATLAB

I checked
but it does not seem to say how one can get t-stat as an output. Please advise.

Best Answer

It is in the top example:
load carsmall
X = [Weight,Horsepower,Acceleration];
mdl = fitlm(X,MPG);
mdl.Coefficients.tStat
ans = 4×1
12.3699 -5.8023 -1.7663 -0.0599