1 function [S1_without_S2, i1] = vectorset_difference(S1,S2)
2 %
function [S1_without_S2, i1] = vectorset_difference(S1,S2)
4 %
function determining the set-theoretic difference
'S1\\S2' of the
5 % columns in S1 and S2. i1 is a set of indices, which represent the
6 % columns of S1, i.e.
'S1(:,i1) = S1_without_S2'
8 % Bernard Haasdonk 5.6.2007
10 % search list of correspondences
12 [i,j] = find_corresp(S1,S2);
14 i_mask = zeros(1,size(S1,2));
18 S1_without_S2 = S1(:,i1);
25 % TO BE ADJUSTED TO NEW SYNTAX