stp_w={ 'I', 'called',' this' ,'in', 'the',' of', 'it', 'is', 'not' ,'too' ,'many' ,'here', 'these', 'one', 'and', 'that',}; f = fopen('gg.txt','r'); I = textscan(f,'%s',100); d=I{1}; for i=1:length(d) x = strmatch(d(i), stp_w);c=0; if x~=1 for j=1:length(d) x = strmatch(d(i),d(j) ); if x==1 c=c+1; end end feq(i)=c; end end
MATLAB: Please any one can understand me this and I want to display any word and here frq like city 3 .gg.txt contain this text I live in a city called hilla this city located in.the center of iraq it is not too large.hilla contain many resturants in her
MATLAB
Best Answer