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: box_indices.m
    path of file: ./repos/GIBBON/lib
    
    the code of the file until where you have to start completion: function [IND]=box_indices(siz)

% function [IND]=box_indices(siz)

    
function [IND]=box_indices(siz)

% function [IND]=box_indices(siz)
% ------------------------------------------------------------------------
% This function returns the indices of the boundary entries (e.g. pixels or
% voxels) for an array with size siz. The boundary entries form a box at
% the edge of the matrix. 
%
% Kevin Mattheus Moerman
% gibbon.toolbox@gmail.com
% 
% 2014/09/25
%------------------------------------------------------------------------

numDim=numel(siz); 
logicSides=false(siz); 
permuteOrder=1:numDim;
for q=1:1:numDim
    if q>1
        logicSides=permute(logicSides,permuteOrder);
    end