clearvars,clc
letters8=fileread('c:\words\words8.txt');
l=length(letters8)/8;
for i=0:l-1
w=char(extractBetween(letters8,8*i+1,8*i+8));
wu=unique(w);
for j=1:length(wu)
ix=strfind(w,wu(j));
if length(ix)==5
disp(w)
end
end
end
letters15=fileread('c:\words\words15.txt');
l=length(letters15)/15;
for i=0:l-1
w=char(extractBetween(letters15,15*i+1,15*i+15));
ix=strfind(w,'e');
if length(ix)==5
good=true;
for k=1:length(w)
if ~isempty(strfind('aiou',w(k)))
good=false;
end
end
if good
disp(w)
end
end
end
finds
(i)
assesses
and
(ii)
cheerlessnesses
defenselessness (probably the one wanted)
fencelessnesses
nervelessnesses
pervertednesses
senselessnesses
sleeplessnesses
|
Posted by Charlie
on 2022-03-27 10:03:06 |