m=round(2*rand(8)-1)
the output:
m = 1 0 0 1 0 0 0 -1 1 1 0 0 1 1 0 -1 0 1 -1 0 0 0 1 1 1 0 0 1 0 0 1 0 0 0 -1 1 1 -1 1 1 -1 -1 -1 1 -1 0 0 -1 -1 -1 1 -1 0 -1 1 0 0 -1 0 1 1 0 0 0
but i don't want zero's output. can anyone help me clear this? thanks
Best Answer