MATLAB: Where is the pvalue of the model stored in fitlm or fitglm

MATLABpvaluestatisticsStatistics and Machine Learning Toolbox

I'm looking for the model pvalue in comparison to the constant interception, not the variable pvalues. Thanks

Best Answer

I had the same question. While looking for the answer online, I found the answer to this from here: StackOverflow.
This would work for fitlm as well:
p = coefTest(mdl);
I'm using Matlab 2018a. Not sure if the function is available in previous versions.
Best.