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: arPLEConfidence.m
    path of file: ./repos/d2d/arFramework3/Development
    
    the code of the file until where you have to start completion: % plot confidence bands of trajectories of ple
%
% arPLEConfidence(jks, n, do_vali)
%
% jks               par response                                    [all]
% n                 trajector
    
function arPLEConfidence(jks, n, do_vali, do_refit_obs)

global ar

if(isempty(ar))
	error('please initialize by arInit')
end
if(isempty(ar.ple))
	error('PLE ERROR: please initialize')
end

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