我看到这样的语句function source= RandBit(len)
source=rand(1,len);source=source>0.5;可运行却不出来??? function source= RandBit(len) |Error: Function definitions are not permitted at the prompt or in scripts.明显是要得到一个 2进制的随机序列请教如何改?len是什么意思
我也是~~~嘿嘿
source=rand(1,len);是要生成一个1行len列的二维随机数矩阵,source=source>0.5这句话看不懂,matlab初学者