CV-Project-1-BUSSIERE-BEAUD/getSample.m

4 lines
102 B
Matlab

function Samples = getSamples(max, percentage)
Samples = find(rand(1, max) < percentage);
endfunction