https://nl.mathworks.com/help/ident/ref/recursivear-system-object.html
recursiveAR - Online parameter estimation of AR model - MATLAB
Use the recursiveAR System object for parameter estimation with real-time data using an AR model structure.
parameter estimationonlinemodelmatlab