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 number of points )
NumberBits=input( Enter the number of points per bit )
for i=1:NPoints
m=round(rand(1)*3)
data(i)=2*m-1-M
end