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: pairs.m
    path of file: ./repos/malini/Codes/FC_EC_calculation code/DynamicFC/jplv7/graphs
    
    the code of the file until where you have to start completion: function  pscatter(X,vnames,plotsymbol,diagonal)
% PURPOSE: Pairwise scatter plots of the columns of x
%---------------------------------------------------
% USAGE:    pscatter(x,vnames,pltsym,diagon)
%        or pscatter(x) which relies on defaults

    
function  pscatter(X,vnames,plotsymbol,diagonal)
% PURPOSE: Pairwise scatter plots of the columns of x
%---------------------------------------------------
% USAGE:    pscatter(x,vnames,pltsym,diagon)
%        or pscatter(x) which relies on defaults
% where:  
%        x = an nxk matrix with columns containing variables
%   vnames = a vector of variable names
%            (default = numeric labels 1,2,3 etc.)
%   pltsym = a plt symbol 
%            (default = '.' for npts > 100, 'o' for npts < 100 
%   diagon = 1 for upper triangle, 2 for lower triangle
%            (default = both upper and lower)
%---------------------------------------------------
% NOTE: uses function histo() 
%---------------------------------------------------

%       Anders Holtsberg, 14-12-94
%       Copyright (c) Anders Holtsberg
% JP LeSage added the vnames capability

clf;
[n,p] = size(X);
X = X - ones(n,1)*min(X);
X = X ./ (ones(n,1)*max(X));

nflag = 0;
if nargin >=2
nflag = 1;
end