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: discrim_plot.m
    path of file: ./repos/CanlabCore/CanlabCore/Cluster_contig_region_tools/Cluster-based_multivar_tools
    
    the code of the file until where you have to start completion: function y2 = discrim_plot(discf,y,varargin)
% y2 = discrim_plot(discf,y,[new figure],[column to do partial corr plot of])
%

    
function y2 = discrim_plot(discf,y,varargin)
% y2 = discrim_plot(discf,y,[new figure],[column to do partial corr plot of])
%
% Plots correlation or partial correlation
% Color codes by median split of y
%
% see also:
% cluster_discrim
% cluster_discrim_montage

dofig = 1; dopr = 0;
if length(varargin) > 0, dofig = varargin{1};,end