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: bspm_get_peaks.m
    path of file: ./repos/bspm/stats
    
    the code of the file until where you have to start completion: function peaks = bspm_get_peaks(image,intensity,cluster,separation,notstat)
% BSPM_SAVE_TABLE
%
%   USAGE: bspm_get_peaks(image,intensity,cluster,separation)

    
function peaks = bspm_get_peaks(image,intensity,cluster,separation,notstat)
% BSPM_SAVE_TABLE
%
%   USAGE: bspm_get_peaks(image,intensity,cluster,separation)
%
%   ARGUMENTS
%       image:      filename of input statistic image
%       intensity:  intensity threshold to use
%       cluster:    cluster extent threshold to use
%       separation: minimum peak separation (in mm)
%      
% Created April 8, 2013 - Bob Spunt
% Uses code authored by:
% Drs. Donald McLaren & Aaron Schultz (peak_nii.m) 

% ---------------------------- Copyright (C) 2014 ----------------------------
%	Author: Bob Spunt
%	Affilitation: Caltech
%	Email: spunt@caltech.edu
%
%	$Revision Date: Aug_20_2014

if nargin<5, notstat = 0; end