diff --git a/getSample.m b/getSample.m new file mode 100644 index 0000000..06c589c --- /dev/null +++ b/getSample.m @@ -0,0 +1,3 @@ +function Samples = getSamples(max, percentage) +Samples = find(rand(1, max) < percentage); +endfunction