NRZ
1.NRZ编码
NRZ 编码(Non-return-to-zero Code)是不需要归零的。只有+1和-1。一个周期全部用来传送数据,缺乏自同步特性。
>> fs = 8000; %采样频率
fc1 = 200; %载波频率
fc2 = 500; %载波频率
RB = 100; %码元速率
M = 2; %二进制调制
k = log2(M);
N = 10000; %比特数
n = 2^(ceil(log2(N*fs/RB))); % n=524288
t = (0:n-1)./fs; % 采样时间
f = (-n/2:n/2-1)*fs/n; % 频率范围
%%%%%%%%%%%%%%%%%%%%% 产生原始信号 %%%%%%%%%%%%%