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: icatb_dialogBox.m
    path of file: ./repos/gift/GroupICAT/icatb
    
    the code of the file until where you have to start completion: function figHandle = icatb_dialogBox(varargin)
% Purpose: Dialog box for handling large text in Group ICA Toolbox. Inputs must be in pairs.
%
% Input:
% 1. 'title' - title of the dialog box
% 2. 'textBody' - Body of the text
% 3. 'textType' - large for larger text and small for smaller text
% 4. 'plotbutton' - specify structure containing fields x, y, title.
% 5. 'windowStyle' - modal or normal.

    
function figHandle = icatb_dialogBox(varargin)
% Purpose: Dialog box for handling large text in Group ICA Toolbox. Inputs must be in pairs.
%
% Input:
% 1. 'title' - title of the dialog box
% 2. 'textBody' - Body of the text
% 3. 'textType' - large for larger text and small for smaller text
% 4. 'plotbutton' - specify structure containing fields x, y, title.
% 5. 'windowStyle' - modal or normal.

% Check the number of args
if nargin < 1
    error('No arguments passed');
elseif mod(nargin, 2) ~= 0
    error('Arguments passed must be even in number');
end