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: view_matrix.m
    path of file: ./repos/brainstorm3/toolbox/gui
    
    the code of the file until where you have to start completion: function [hFig, iDS, iFig] = view_matrix( MatFile, DisplayMode, hFig )
% VIEW_MATRIX: Display a matrix file.
%
% USAGE: [hFig, iDS, iFig] = view_matrix(MatFile, DisplayMode='timeseries', hFig=[])
%
% INPUT: 
%     - MatFile     : Matrix file to display
%  
    
function ViewTable(Data, Description, Time, wndTitle)
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.table.*;
    import org.brainstorm.icon.*;
    % Progress bar
    bst_progress('start', 'View data as table', 'Loading data...');
    % Create figure
    jFrame = java_create('javax.swing.JFrame', 'Ljava.lang.String;', wndTitle);
    % Set icon
    jFrame.setIconImage(IconLoader.ICON_APP.getImage());
    % Create cell matrix of strings to display
    rows = reshape(cellstr(num2str(Data(:))), size(Data,1), size(Data,2));
    % Define column headers 
    if (size(Description,2) == size(Data,2))
        colTitle = Description(1,:);
        firstCol = ' ';
    elseif (length(Time) == size(Data,2))
        colTitle = cellstr(num2str(Time(:)))';
        firstCol = 'Time';
    else
        colTitle = [];
    end