for i=1:9400 Sbox_out_11(i) = length(findstr(num2str(dec2bin(Sbox_out_1(i,:))),'1')); end
转:https://www.cnblogs.com/backahasten/p/9427013.html