view toolboxes/FullBNT-1.0.7/bnt/examples/dynamic/HHMM/Mgram/num2letter.m @ 0:cc4b1211e677 tip

initial commit to HG from Changeset: 646 (e263d8a21543) added further path and more save "camirversion.m"
author Daniel Wolff
date Fri, 19 Aug 2016 13:07:06 +0200
parents
children
line wrap: on
line source
function l = num2letter(n)

% map 1:26 to a-z and 27:52 to A-Z
punct_code = [32:47 58:64 91:96 123:126];
digits_code = 48:57;
upper_code = 65:90;
lower_code = 97:122;

letters = [char(lower_code) char(upper_code)];
l = letters(n);