MATLAB: Do the observation labels not appear on the graph created using the BIPLOT function in the Statistics Toolbox

analysiscomponentspcaplotprincipalStatistics and Machine Learning Toolboxtext;

When I use the BIPLOT function with the commands:
oslabels = {'1','2','3'}
biplot(coefs, 'Scores', scores, 'ObsLabels', oslabels)
the resulting figure is missing the labels contained in "oslabels."

Best Answer

This is an error within the documentation for the Statistics Toolbox in the usage of the BIPLOT function. The documentation should read as follows:
BIPLOT(COEFS, ..., 'Scores', SCORES, 'ObsLabels', OBSLABS) uses the text in the character array or cell array OBSLABS as observation names when displaying data cursors.
This change has been incorporated into the documentation of the Statistics Toolbox 5.1 (R14SP3). For previous releases, read below for any additional information:
The labels are not supposed to display on the plot, because that would usually make the plot very cluttered. However the labels will show up when you use data cursors.
Attached is an example that shows how to have all the labels show up.