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: demoClassify.m
    path of file: ./repos/MCITF/Code/MCITF/EdgeBox/piotr_toolbox/toolbox/external/deprecated
    
    the code of the file until where you have to start completion: function demoClassify
%DEMOCLASSIFY A demo used to test and demonstrate the usage of classifiers (clf*)
%
% To change the demo parameters alter this function. Note that the
% visualization of the train and test data may look different due to
% different 2D projections (see visualizeData).
%
% USAGE
%  demoClassify
%
% INPUTS
%
% OUTPUTS
%
% EXAMPLE
%  demoClassify
%
% See also CLFKNN, CLFLDA, CLFSVM, CLFECOC, CLFDECTREE, VISUALIZEDATA
%
% Piotr's Image&Video Toolbox      Version 2.0
% Copyright 2008 Piotr Dollar.  [pdollar-at-caltech.edu]
% Please email me if you find bugs, or have suggestions or questions!
% Licensed under the Lesser GPL [see external/lgpl.txt]

%%% generate data
nClasses = 4;  d = 3;  nTrn=250;  nTst=150;  show = 1;

[trnData,trnIDX,tstData,tstIDX] = demoGenData(nTrn,nTst,nClasses,d,1,6);
nTrn=size(trnData,1);  nTst=size(tstData,1); %#ok<NASGU>
if( show ) % make look different due to different projections

    
function demoClassify
%DEMOCLASSIFY A demo used to test and demonstrate the usage of classifiers (clf*)
%
% To change the demo parameters alter this function. Note that the
% visualization of the train and test data may look different due to
% different 2D projections (see visualizeData).
%
% USAGE
%  demoClassify
%
% INPUTS
%
% OUTPUTS
%
% EXAMPLE
%  demoClassify
%
% See also CLFKNN, CLFLDA, CLFSVM, CLFECOC, CLFDECTREE, VISUALIZEDATA
%
% Piotr's Image&Video Toolbox      Version 2.0
% Copyright 2008 Piotr Dollar.  [pdollar-at-caltech.edu]
% Please email me if you find bugs, or have suggestions or questions!
% Licensed under the Lesser GPL [see external/lgpl.txt]

%%% generate data
nClasses = 4;  d = 3;  nTrn=250;  nTst=150;  show = 1;

[trnData,trnIDX,tstData,tstIDX] = demoGenData(nTrn,nTst,nClasses,d,1,6);
nTrn=size(trnData,1);  nTst=size(tstData,1); %#ok<NASGU>
if( show ) % make look different due to different projections
  figure(show); clf;
  subplot(3,1,1); visualizeData(trnData, 2, trnIDX ); title( 'train set');
  subplot(3,1,2); visualizeData(tstData, 2, tstIDX ); title( 'test set');
end