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: spm_bms_display_vox.m
    path of file: ./repos/bspm/thirdparty/spm12
    
    the code of the file until where you have to start completion: function spm_bms_display_vox(BMS,xyz)
% display results from BMS Maps at current voxel
% FORMAT spm_bms_display_vox(xyz)
%
% Input:
% xyz - voxel coordinates [1,3] (voxel)
%_______________________________________________________________________
% Copyright (C) 2008 Wellcome Trust Centre for Neuroimaging

% Maria Joao Rosa
% $Id: spm_bms_display_vox.m 3288 2009-07-27 09:23:54Z maria $

% Find graphics window
% -------------------------------------------------------------------------
Fgraph = spm_figure('GetWin','Graphics');

% Inference method to plot
% -------------------------------------------------------------------------

    
function spm_bms_display_vox(BMS,xyz)
% display results from BMS Maps at current voxel
% FORMAT spm_bms_display_vox(xyz)
%
% Input:
% xyz - voxel coordinates [1,3] (voxel)
%_______________________________________________________________________
% Copyright (C) 2008 Wellcome Trust Centre for Neuroimaging

% Maria Joao Rosa
% $Id: spm_bms_display_vox.m 3288 2009-07-27 09:23:54Z maria $

% Find graphics window
% -------------------------------------------------------------------------
Fgraph = spm_figure('GetWin','Graphics');

% Inference method to plot
% -------------------------------------------------------------------------
method = spm_input('Inference method',+1,'b','FFX|RFX',['FFX';'RFX']);

switch method
    
    % Fixed effects
    % ---------------------------------------------------------------------
    case 'FFX'
        
            if  isfield(BMS.map,'ffx')
                
                nmodels = size(BMS.map.ffx.ppm,2);
                models  = [];
                ppm_vox = zeros(nmodels,1);
        
                % Get values
                for i = 1:nmodels,
                    tmp_ppm_vox   = spm_vol(BMS.map.ffx.ppm{i});
                    ppm_vox(i,:)  = spm_get_data(tmp_ppm_vox,xyz);
                    models        = [models; sprintf('model %d',i)];
                end