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: arPlotMCMCProfiles.m
    path of file: ./repos/d2d/arFramework3/MCMC
    
    the code of the file until where you have to start completion: % arPlotMCMCProfiles(jks, Nthinning)
% plot mcmc profiles
%
% jks       [find(ar.qFit==1)]
% Nthinning [1]

function arPlotMCMCProfiles(jks, Nthinning)

global ar

if(~exist('Nthinning','var'))
    
    
function arPlotMCMCProfiles(jks, Nthinning)

global ar

if(~exist('Nthinning','var'))
    Nthinning = 1;
end
if(~isfield(ar.config,'useFitErrorMatrix'))
    ar.config.useFitErrorMatrix = false;
end

h = myRaiseFigure('mcmc profiles');
set(h, 'Color', [1 1 1]);

if(~exist('jks','var') || isempty(jks))
    jks = find(ar.qFit==1);
end