www.gusucode.com > UWB_matlab源码程序 > CP0201/cp0201_bits.m
% % FUNCTION 2.1 : "cp0201_bits" % % Generates a stream of equiprobable binary values ('bits') % The number of bits ('numbits') is an input parameter % % Programmed by Guerino Giancola % function [bits]=cp0201_bits(numbits) % -------------------------------------------- % Step One - Generation of the reference pulse % -------------------------------------------- bits=rand(1,numbits)>0.5;