I have a string array that is just a list of words (dictionary), a random word (word) is selected and I want to loop though the alphabet, then if, say 'a' isn't in my random word it will delete all entries in my string array that contain 'a' etc. (Warning you now, I'm new to matlab).
for i=alphabet; if i==word; strfind(dictionary,i); sel(i)=true; endendrows=find(sel);newdictionary=dictionary(sel);
this isn't working, so any help with fixing it would be really appreciated
Best Answer