function data = topXfeatures(vec,X)
%
%
%
%
%

sz = size(vec);
data = zeros(sz);
%X = ceil(sz(2)*.1);

for k = 1:sz(1)
temp = vec(k,:);
[st,I] = sort(temp);
flI = fliplr(I);
%data(k,flI(1:X)) = temp(flI(1:X));
data(k,flI(1:X)) = 1;
end