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: PALA_boxplot.m
    path of file: ./repos/PALA/PALA/PALA_addons/PALA_functions
    
    the code of the file until where you have to start completion: function PALA_boxplot(label_in,val_Err,varargin)
%% function PALA_boxplot(label_in,val_Err)
% Custom function to display box plot.
%

    
function PALA_boxplot(label_in,val_Err,varargin)
%% function PALA_boxplot(label_in,val_Err)
% Custom function to display box plot.
%
% Created by Arthur Chavignon 2019
%
% DATE 2020.07.22 - VERSION 1.1
% AUTHORS: Arthur Chavignon, Baptiste Heiles, Vincent Hingot. CNRS, Sorbonne Universite, INSERM.
% Laboratoire d'Imagerie Biomedicale, Team PPM. 15 rue de l'Ecole de Medecine, 75006, Paris
% Code Available under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International (see https://creativecommons.org/licenses/by-nc-sa/4.0/)
% ACADEMIC REFERENCES TO BE CITED
% Details of the code in the article by Heiles, Chavignon, Hingot, Lopez, Teston and Couture.  
% Performance benchmarking of microbubble-localization algorithms for ultrasound localization microscopy, Nature Biomedical Engineering, 2021.
% General description of super-resolution in: Couture et al., Ultrasound localization microscopy and super-resolution: A state of the art, IEEE UFFC 2018

labelSize=10;

%% Statistics
if iscell(val_Err)
    val_med = cellfun(@median,val_Err);
    val_mean = cellfun(@mean,val_Err);
    val_std = cellfun(@std,val_Err);
    val_d1 =  cellfun(@(x) quantile(x,.05,1),val_Err);
    val_d9 = cellfun(@(x) quantile(x,.95,1),val_Err);
    val_q1 =  cellfun(@(x) quantile(x,.25,1),val_Err);
    val_q3 =  cellfun(@(x) quantile(x,.75,1),val_Err);
else
    val_med = mean(val_Err);
    val_mean = mean(val_Err);
    val_std = std(val_Err);
    val_d1 = quantile(val_Err,.05,1);
    val_d9 = quantile(val_Err,.95,1);
    val_q1 = quantile(val_Err,.25,1);
    val_q3 = quantile(val_Err,.75,1);
end