Is mldivide always the same as OLS in MATLAB?
问题 I am doing a comparison of some alternate linear regression techniques. Clearly these will be bench-marked relative to OLS (Ordinary Least Squares). But I just want a pure OLS method, no preconditioning of the data to uncover ill-conditioning in the data as you find when you use regress() . I had hoped to simply use the classic (XX)^-1XY expression? However this would necessitate using the inv() function, but in the MATLAB guide page for inv() it recommends that you use mldivide when doing