calc_flags

check for optional flag

Syntax

flags = calc_flags(args,flagbits)

Input

varargin list {flag_name,bit_position}

Output

bitsum