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: organizePublicData.m
    path of file: ./repos/glider_toolbox/m/dm_tools
    
    the code of the file until where you have to start completion: function [ ] = organizePublicData( output_path, outputs, figures )
% ORGANIZEPUBLICDATA  Copies data (netCDF and figures) to public directories
%
%  Syntax:
%    ORGANIZEPUBLICDATA(CONFIG, OUTPUTS, FIGURES)
%
%  Description:
%    ORGANIZEPUBLICDATA copies netCDF files and figures to the public
%    directories that are defined in the configuration input. 

    
function [ ] = organizePublicData( output_path, outputs, figures )
% ORGANIZEPUBLICDATA  Copies data (netCDF and figures) to public directories
%
%  Syntax:
%    ORGANIZEPUBLICDATA(CONFIG, OUTPUTS, FIGURES)
%
%  Description:
%    ORGANIZEPUBLICDATA copies netCDF files and figures to the public
%    directories that are defined in the configuration input. 
%
%  Input:
%    PUBLIC_PATH defines the location of the public directories where the
%      netCDF and figures will be copied.
%    OUTPUTS is a structure containing the names of the NetCDF files that
%      were created along the process. The structure may contain
%      (optionally) these fields
%       - netcdf_l0:    L0 level NetCDF file
%       - netcdf_l1:    L1 level NetCDF file
%       - netcdf_l2:    L2 level NetCDF file
%       - netcdf_egol0: L1 level NetCDF-EGO file
%    FIGURES is a structure containing the file names of the figures that
%      were created along the process. The structure may contain
%      (optionally) these fields
%       - fig_proc: structure with the figures of processed data
%       - fig_grid: structure with the figures of gridded data  
%
%  Authors:
%    Miguel Charcos Llorens  <mcharcos@socib.es>
%
%  Copyright (C) 2013-2016
%  ICTS SOCIB - Servei d'observacio i prediccio costaner de les Illes Balears
%  <http://www.socib.es>
%
%  This program is free software: you can redistribute it and/or modify
%  it under the terms of the GNU General Public License as published by
%  the Free Software Foundation, either version 3 of the License, or
%  (at your option) any later version.
%
%  This program is distributed in the hope that it will be useful,
%  but WITHOUT ANY WARRANTY; without even the implied warranty of
%  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
%  GNU General Public License for more details.
%
%  You should have received a copy of the GNU General Public License
%  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
  %% Initialization
  narginchk(3, 3);
  
  %% Set the directory paths
  public_paths = struct();  
  if isfield(output_path, 'netcdf_l0') && ~isempty(output_path.netcdf_l0)
    public_paths.netcdf_l0 = fullfile(output_path.base_dir, output_path.netcdf_l0);
  end