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: initial_michelogram.m
    path of file: ./repos/OMEGA/source
    
    the code of the file until where you have to start completion: function output = initial_michelogram(options, coincidences, type, varargin)
%% Form initial raw Michelograms
% Forms the initial raw Michelograms from the raw list-mode data. I.e. a
% Michelogram without any spanning yet applied. Used by form_sinograms in
% forming the actual sinograms.
%
% INPUTS:
%   options = Machine properties.
%   coincidences = A cell matrix containing the raw data for each time
%   step. The cell matrix contains n vectors, where n is the number of time
%   steps (i.e. options.partitions). The size of the (sparse) vectors is
%   the lower triangular part of a options.detectors x  options.detectors
%   matrix, with the diagonal included.
%   type = The type of input data (trues, randoms, scatter, delayes or
%   coincidencess)
%
% OUTPUT:
%   coincidences = A cell matrix containing the raw Michelogram for each
%   time step. The cell matrix has a size of rings x rings, where each cell
%   element contains the the coincidences between the ring in x-direction
%   and ring in y-direction. E.g. coincidences{2,4} contains coincidences
%   between rings 2 and 4. Each cell element contains a vector that is the
%   lower triangular part of det_per_ring x det_per_ring
%   sized matrix.
%
% See also form_sinograms, load_data, sinogram_coordinates_2D

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Copyright (C) 2020 Ville-Veikko Wettenhovi
%
% 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

    
function output = initial_michelogram(options, coincidences, type, varargin)
%% Form initial raw Michelograms
% Forms the initial raw Michelograms from the raw list-mode data. I.e. a
% Michelogram without any spanning yet applied. Used by form_sinograms in
% forming the actual sinograms.
%
% INPUTS:
%   options = Machine properties.
%   coincidences = A cell matrix containing the raw data for each time
%   step. The cell matrix contains n vectors, where n is the number of time
%   steps (i.e. options.partitions). The size of the (sparse) vectors is
%   the lower triangular part of a options.detectors x  options.detectors
%   matrix, with the diagonal included.
%   type = The type of input data (trues, randoms, scatter, delayes or
%   coincidencess)
%
% OUTPUT:
%   coincidences = A cell matrix containing the raw Michelogram for each
%   time step. The cell matrix has a size of rings x rings, where each cell
%   element contains the the coincidences between the ring in x-direction
%   and ring in y-direction. E.g. coincidences{2,4} contains coincidences
%   between rings 2 and 4. Each cell element contains a vector that is the
%   lower triangular part of det_per_ring x det_per_ring
%   sized matrix.
%
% See also form_sinograms, load_data, sinogram_coordinates_2D

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Copyright (C) 2020 Ville-Veikko Wettenhovi
%
% 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 <https://www.gnu.org/licenses/>.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


pseudot = options.pseudot;

if nargin > 3
    skip = true;
else
    skip = false;
end