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

📄 makeman.m

📁 This is a collection of m-files I created to complete a research project into the DC components of v
💻 M
字号:
%makeMan(in)
%   This function creates a random sequence of 'in' bits valued at 0 and 1,
%   that meet a Manchester code, that is, that the only possible combinations
%   of two bits are '10' and '11'.  This is an NRZI code.

function out = makeMan(in)

if mod(in,2) == 1
    in = in + 1;
end

man = ones(1,in);
data = makeNRZ(in/2);
for i = 1:length(data)
    man(2*i) = data(i);
end

out = man;

⌨️ 快捷键说明

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