Introduction - If you have any usage issues, please Google them yourself
clear all
m=input( enter the number of symbols )
n=log(m)/log(2)
npoints=input( enter the no of points )
nbits=input( enter the no of points per bit )
for i=1:npoints
d=round((rand(1)))
data(i)=2*d-1-m
end