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

📄 mary.m

📁 mqam的实现程序
💻 M
字号:
% File: mary.m
% Software given here is to accompany the textbook: W.H. Tranter, 
% K.S. Shanmugan, T.S. Rappaport, and K.S. Kosbar, Principles of 
% Communication Systems Simulation with Wireless Applications, 
% Prentice Hall PTR, 2004.
%
function y= mary(levels,m,n)
% m = number of symbols
% n = samples per symbol
l = m*n;                         % Total sequence length
y = zeros(1,l-n+1);              % Initalize output vector
lm1 = levels-1;
x=2*fix(levels*rand(1,m))-lm1;
for i = 1:m                      % Loop to generate info symbols
        k = (i-1)*n+1;
        y(k) = x(i);
end
y = conv(y,ones(1,n));           % Make each symbol n samples
% End of function file.

⌨️ 快捷键说明

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