11 lines
273 B
Mathematica
11 lines
273 B
Mathematica
|
## 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
|