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: LoadSpikeAmplitudes.m
    path of file: ./repos/fieldtrip/external/neuroscope
    
    the code of the file until where you have to start completion: function amplitudes = LoadSpikeAmplitudes(filename,nChannels,nSamples,peak,rate)

%LoadSpikeAmplitudes - Read spike times, cluster IDs and amplitudes from disk.
%
%  USAGE
%
%    amplitudes = LoadSpikeAmplitudes(filename,nChannels,nSamples)
%
%    filename            spike waveform file name
%    nChannels           number of channels in electrode group
%    nSamples            number of samples per waveform
%    peak                peak sample (1..N)
%    rate                sampling rate
%
%  SEE
%
%    See also GetSpikeAmplitudes, LoadSpikeWaveforms.

% Copyright (C) 2004-2012 by MichaÃ«l Zugaro

    
function amplitudes = LoadSpikeAmplitudes(filename,nChannels,nSamples,peak,rate)

%LoadSpikeAmplitudes - Read spike times, cluster IDs and amplitudes from disk.
%
%  USAGE
%
%    amplitudes = LoadSpikeAmplitudes(filename,nChannels,nSamples)
%
%    filename            spike waveform file name
%    nChannels           number of channels in electrode group
%    nSamples            number of samples per waveform
%    peak                peak sample (1..N)
%    rate                sampling rate
%
%  SEE
%
%    See also GetSpikeAmplitudes, LoadSpikeWaveforms.

% Copyright (C) 2004-2012 by MichaÃ«l Zugaro
%
% 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.

if nargin < 3,
  error('Incorrect number of parameters (type ''help <a href="matlab:help LoadSpikeAmplitudes">LoadSpikeAmplitudes</a>'' for details).');
end