From: Bob on
I have a Matlab program that I'm trying to compile which uses nominal arrays. It runs fine from the Matlab command window, but when I run the compiled version, I get the following error message:

??? Method 'checklabels' is not defined for class 'categorical'.

Any ideas as to what's causing this error?
I can find the checklabels.m file in:
C:\Program Files\Matlab\R2008b\toolbox\shared\statslib\@categorical

The first line of code using the nominal type is:
type_col_NL = nominal(type_col_NL, {'NL'});

The program was compiled without any special flags - essentially just
mcc -m programWithNominals.m

I am using the following versions:

MATLAB Version 7.7.0.471 (R2008b)
MATLAB Version 7.7 (R2008b)
Bioinformatics Toolbox Version 3.2 (R2008b)
Database Toolbox Version 3.5 (R2008b)
MATLAB Compiler Version 4.9 (R2008b)
Statistics Toolbox Version 7.0 (R2008b)