Mercurial > hg > mauch-mirex-2010
annotate _FullBNT/KPMtools/mysubset.m @ 9:4ea6619cb3f5 tip
removed log files
author | matthiasm |
---|---|
date | Fri, 11 Apr 2014 15:55:11 +0100 |
parents | b5b38998ef3b |
children |
rev | line source |
---|---|
matthiasm@8 | 1 function p=mysubset(small,large) |
matthiasm@8 | 2 % MYSUBSET Is the small set of +ve integers a subset of the large set? |
matthiasm@8 | 3 % p = mysubset(small, large) |
matthiasm@8 | 4 |
matthiasm@8 | 5 % Surprisingly, this is not built-in. |
matthiasm@8 | 6 |
matthiasm@8 | 7 if isempty(small) |
matthiasm@8 | 8 p = 1; % isempty(large); |
matthiasm@8 | 9 else |
matthiasm@8 | 10 p = length(myintersect(small,large)) == length(small); |
matthiasm@8 | 11 end |