⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 random_data.m

📁 MATLAB-functions used in Space-Time Project Simulation
💻 M
字号:
function d = random_data(block_size)
% d = random_data(block_size)
%
% Generates a block of equiprobable random binary data, {0, 1}
%
% Input:
%   block_size  = the number of bits to generate
%
% Output:
%   d           = random data bits, {0, 1}

% History:
%   2000-06-26  written /Stefan

d = (rand(1, block_size) > .5);

⌨️ 快捷键说明

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