How would I choose whether a constant is + or - with equal probability in matlab?
Follow Math Help Forum on Facebook and Google+
Originally Posted by FGT12 How would I choose whether a constant is + or - with equal probability in matlab? x=abs(x)*( 1-2*(rand(1,1)<0.5) )
View Tag Cloud