Ajouter 'getSample.m'

This commit is contained in:
Rémi BUSSIERE 2023-02-19 22:45:34 +01:00
parent ed7d6a9a40
commit be69cdf002
1 changed files with 3 additions and 0 deletions

3
getSample.m Normal file
View File

@ -0,0 +1,3 @@
function Samples = getSamples(max, percentage)
Samples = find(rand(1, max) < percentage);
endfunction