function fvec = getwfreq(strs,word)
% finds how many times a pattern ("word") appears
%   in a given array of strings
%word
for i=1:length(strs)
    fvec(i,1) = length(findstr(char(word),strs{i}));
end;