function x = comb(n,b)

% COMB: Computing Combination n choose b
% Syntax: x = comb(n,b)

if nargin ~= 2
    error ('Must be 2 input arguments for this function')
end

x = factorial(n)/(factorial(n-b)*factorial(b));

return
    