cp0201_bits.m

来自「UWB各模块的代码」· M 代码 · 共 17 行

M
17
字号
%
% 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;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?