Unrecognized function or variable 'arma'

1 view (last 30 days)
A code snippet:
% Input data
X = dY;
% BIC cost for different combinations of p and q
bic = zeros(2,2);
for p = 1:2
for q = 1:2
[theta,~,logl,~] = arma(X,p,q,0);
k = (p+q+1)*numel(X);
bic(p,q) = -2*logl + k*log(numel(X));
After running the program, it shows the message:
"Unrecognized function or variable 'arma'."
What could be the cause of this problem?

Accepted Answer

Dyuman Joshi
Dyuman Joshi on 26 Apr 2023
Moved: Image Analyst on 26 Apr 2023
Given the syntax used, arma is a function, but it is not an inbuilt function.
Do you have a function defined as arma? If yes, is it in the current directory? If no, well, then you need to define arma(), before using it.

Sign in to comment.

More Answers (0)


Find more on Conditional Mean Models in Help Center and File Exchange




Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!