function C = setdiff_noC(A,B)
% SETDIFF Compute C = { x: x in A, x not in B }
% C = setdiff(A,B)

% This is faster than the built-in setdiff
% /usr/sww/pkg/matlab-5.2/toolbox/matlab/ops/setdiff.m     


if isempty(B)
  C = A;
  return;
end

A = A(:);
B = B(:);

C = [];
for i=1:length(A)
  if isempty(find(A(i)==B))
    C = [C A(i)];
  end
end

