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: showVol.m
    path of file: ./repos/bspm/thirdparty/rsatoolbox/Engines
    
    the code of the file until where you have to start completion: function showVol(volORmap, title, figI, right, skipNslices, nHorPanels, nVerPanels, labels, labelPos)

% USAGE:        showVol(vol, [title, figI, right, skipNslices, nHorPanels, nVerPanels, labels, labelPos])
%
% FUNCTION:     to display a volume as a set of slices
%
% ARGUMENTS:
% vol           the volume as a stack of true-color slices:
%               X by Y by 3 by Z. the third dimension encodes 
%               the color component (red, green, blue).
%               anatomically, the X axis points to the left,
%               the Y axis to the back of the brain, and the
%               Z axis up.
%
% [title]       string to be used as a title (optional)
%

    
function showVol(volORmap, title, figI, right, skipNslices, nHorPanels, nVerPanels, labels, labelPos)

% USAGE:        showVol(vol, [title, figI, right, skipNslices, nHorPanels, nVerPanels, labels, labelPos])
%
% FUNCTION:     to display a volume as a set of slices
%
% ARGUMENTS:
% vol           the volume as a stack of true-color slices:
%               X by Y by 3 by Z. the third dimension encodes 
%               the color component (red, green, blue).
%               anatomically, the X axis points to the left,
%               the Y axis to the back of the brain, and the
%               Z axis up.
%
% [title]       string to be used as a title (optional)
%
% [figI]        figure number (optional), generates autonumbered next
%               figure if this argumant is missing or empty.
%
% [right]       a string specifying the orientation of the
%               slices. if right is 'right', then right is 
%               right, i.e. the view onto the slices is from
%               above. if right is 'left' or simply 'wrong',
%               then right is left, i.e. the view onto the 
%               slices is from below.
%
% [skipNslices] optional number of slices to be skipped between slices to
%               be shown. defaults to 0 (all slices shown).
%
% labels        structured array of string labels (optional)
%
% labelPos      nLabels by 3 matrix of label positions (optional)

% DEBUG
% vol(1,1,:,1)=[1 0 0];
% vol(10,1,:,1)=[1 0 0];
%__________________________________________________________________________
% Copyright (C) 2009 Medical Research Council

if ndims(volORmap)==3 % if its a map...
    vol=map2vol(volORmap);
else % must be a vol
    vol=volORmap;
end