TP-probabilites/TP2/selection.m
2023-06-10 21:01:20 +02:00

11 lines
273 B
Matlab

## 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