# This simple function returns a vector of indices of the nonzero
# elements of the input vector.

pick = function (x)
{
  return find (1; x != 0);
};


syntax highlighted by Code2HTML, v. 0.9.1