image thumbnail

Fetch (Big)

by

 

27 Apr 2012 (Updated )

Fetch command useful for SELECT queries on large data sets.

getargin(args, index, default)
function out = getargin(args, index, default)

% out = getargin(args, index, default)
% 
% Returns either |args{index}| if it exists or |default| otherwise.
%
% Tucker McClure @ The MathWorks
% Copyright 2012 MathWorks, Inc.

    if length(args) >= index
        out = args{index};
    else
        out = default;
    end

end

Contact us