Hi,
To fit an ARMA (Autoregressive Moving Average) model to a time series in MATLAB, you can use the Econometrics Toolbox, which offers tools tailored for time series analysis.
You can refer to the following documentation in order to understand in depth about creating ARMA models in MATLAB.
I hope this will answer your query.
Regards,
Zuber