MATLAB Answers

Why am I getting an error message "undefined function" when using the LAGMATRIX function in MATLAB 7.10 (R2010a)?

8 views (last 30 days)
Adity on 12 Jan 2011
I try to compile using mcc command in R2010a and one of the MATLAB files to be compiled is toolbox/garch/lagmatrix.m. I am getting the error message that says it cannot find the LAGMATRIX function.

Answers (3)

Kenneth Eaton
Kenneth Eaton on 21 Jan 2011
Have you tried including that file using the MCC archive option -a? On a Windows machine it would look something like:
mcc ... -a C:\Program Files\MATLAB\R2010a\toolbox\garch\lagmatrix.m

Walter Roberson
Walter Roberson on 21 Jan 2011
How are you referencing lagmatrix ? If it only appears inside a string, then you need to add
See this technical solution for more information.

Gabo on 6 Jun 2011
The name of the toolbox changed in 2008b to Econometrics Toolbox. See release notes: Do
which lagmatrix
in the command line to verify the file's new location.

Community Treasure Hunt

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

Start Hunting!