TP-probabilites/TP2/selection.m

11 lines
273 B
Mathematica
Raw Permalink Normal View History

2023-06-10 19:01:20 +00:00
## Author: Laurent
## Created: 2020-11-10
function [selection_frequences, selection_alphabet] = selection(frequences, alphabet)
indices = find(frequences>0.0).';
selection_frequences = frequences(indices).';
selection_alphabet = alphabet(indices);
endfunction