
nn=6
bb=[1 3 4 5 6 0];
c=[1 1 1 1 1 1];
for i=1:nn
if bb(i)<=1
c(i)=0;
end
end
cc=sum(c);
p=100
aa=p/cc;
dd=aa.*c;
%for j=1:nn
%snr1(j)=dd(j)*hc3(j)/(n0*fs/512+dd(j)*fext(j));
%end

