function [result] = multiplyMatrices(mat1, varargin)
% MULTIPLYMATRICES will subtract two or more matrices

try
    result = double(mat1);
    for i = 2:nargin
        if isempty(varargin{i-1})
            continue
        end
        result = result * double(varargin{i-1});
    end
    
catch myException
    throw(myException)
end