I have this error, and I don't know how to solve it.Can someone help me please?
1 view (last 30 days)
More Answers (2)
Walter Roberson on 28 Aug 2018
OOK = randi(1,sig_length);
That line says that the rand values should be integers in the range 1 to 1, and that you want sig_length rows and columns of them.
If you want random binary you should use
randi([0 1], 1, sig_length)