function S=GetNonTrivialSubsets(A)
n=numel(A); S=cell(2^n-2,1); for i=1:numel(S) f=dec2binvec(i); f=[f zeros(1,n-numel(f))]; %#ok
S{i}=A(logical(f)); end
end
??? input argument "a" is undefined error message in the apriori code
n=numel(A); S=cell(2^n-2,1); for i=1:numel(S) f=dec2binvec(i); f=[f zeros(1,n-numel(f))]; %#ok
S{i}=A(logical(f)); end
ode45(@oscillator, [0, 10], [0;1])
C = {[1 6 7 9], [1 6 7 9], [1 6 7 9]; [8], [8], [2 6 7 9]}; [ii,jj] = find(cell2mat(cellfun(@(x) any(ismember(x,2)),C,'UniformOutput',false)))
Best Answer