MATLAB: Do I receive an error when running an example from the documentation for GLYPHPLOT in the Statistics Toolbox 6.5 (R13)

faceglyphplotlabelsobslabelsr14Statistics and Machine Learning Toolbox

I ran the following example from the documentation for the GLYPHPLOT function:
load carsmall
X = [Acceleration Displacement Horsepower MPG Weight];
glyphplot(X, 'Standardize','column', 'Labels',Model, ...
'grid',[2 2], 'page','scroll');
glyphplot(X, 'Glyph','face', 'Labels',Model, 'grid',[2 3], 'page',9);
I received the following error:
??? Error using ==> plot
Invalid line property: 'Labels'.
Error in ==> glyphplot>plotStars at 512
lineh = plot(tipx([1:p 1],:), tipy([1:p 1],:),'-', spokesx, spokesy, '-', ...
Error in ==> glyphplot at 413
lineh = plotStars(Xstd(pagerows,:),pagerows,ctrx,ctry,radius,plotArgs);

Best Answer

This bug has been fixed for Release 14 SP1 (R14SP1). For previous releases, please read below for any possible workarounds:
This error occurs due to a bug in the example. To work around the problem, replace the text 'Labels' with the text 'ObsLabels'. The same example is given in the MATLAB file help for GLYPHPLOT, which is available by typing "help glyphplot" at the command prompt. The following is the text of that example:
load carsmall
X = [Acceleration Displacement Horsepower MPG Weight];
glyphplot(X, 'Standardize','column', 'ObsLabels',Model, ...
'grid',[2 2], 'page','scroll');