You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: scorePlot.m
    path of file: ./repos/matStats/matStats/@Pca
    
    the code of the file until where you have to start completion: function varargout = scorePlot(varargin)
% Plot individuals in a factorial plane.
%
%   scorePlot(PCA, I, J)
%

    
function varargout = scorePlot(varargin)
% Plot individuals in a factorial plane.
%
%   scorePlot(PCA, I, J)
%
%   scorePlot(PCA)
%   Assumes I = 1 and J = 2.
%
%   Example
%   scorePlot
%
%   See also
%     loadingPlot, correlationCircle
%

% ------
% Author: David Legland
% e-mail: david.legland@inra.fr
% Created: 2012-10-05,    using Matlab 7.9.0.529 (R2009b)
% Copyright 2012 INRA - Cepia Software Platform.

% Extract the axis handle to draw in
[ax, varargin] = parseAxisHandle(varargin{:});

% extract calling table
obj = varargin{1};
varargin(1) = [];

% get factorial axes
cp1 = 1;
cp2 = 2;
if length(varargin) >= 2 && isnumeric(varargin{1})
    cp1 = varargin{1};
    cp2 = varargin{2};    
    varargin(1:2) = [];
end