% getoff
%
% ret = getoff(vec,idx)
% return vector created from vec without! elements with indexes in idx
%
% Tomas Svoboda, CMP Prague

% Last change: 
% 25 March 1999: comments complemented

function ret = getoff(vec,idx)

badidx = 1.010101e-10;
while(any(vec==badidx))
     badidx=badidx*(2/3);
end  
vec(idx) = ones(size(idx))*badidx;
retidx	 = find(vec~=badidx);
ret		 = vec(retidx);

return

   
