clearload('dict_perms.mat')dict=6;dict_perms=dict_perms{6};dict_char=char(dict_perms+64);dict_size=length(dict_perms(:,1));for i=1:dict_size dict_lex.(dict_char(i,1)).(dict_char(i,2)).(dict_char(i,3)).(dict_char(i,4)).(dict_char(i,5)).(dict_char(i,6))=uint16(i);end%the next letters possible from a series of letters can be found with
letters=fieldnames(dict_lex.('A').('B').('H'));%I want words from possible letters
%like dict_lex.(['A','B']).(['D','B']).(['F','H']).(['O','F']).(['R','M']).(['S','K'])
%could be found with a for loop but it is too time consuming
fieldnames(dict_lex.('A'));fieldnames(dict_lex.('B'));
I need to find all possible words that have letters in certain parts of the word. This could be done with a for loop but that is too time consuming. Can anyone point me in the right direction?
Best Answer