📄 carrier.m
字号:
function [spb]=carrier(sbb,fc,fs,T)% [spb]=carrier(sbb,fc,fs,T)%% Output:% spb - Passband signal% % Input:% sbb - Baseband signal% fc - Carrierfrequency% fs - Samplingfrequency% T - Symboltime%% Short Theoretical Background for the Function:%% Multiplys the baseband signal, sbb, with a sinusoidal function % to get a passband signal centered around the carrier frequency, fc.%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%% Function part of simulation for Space-Time%%% coding project, group Grey-2001.%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Author: Fredrik Hansson % Date: 2001-03-19% Version: 1.0% Revision (Name & Date):%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%oversamp = fs*T;t = 0:T/oversamp:(length(sbb)*T-T)/oversamp; %time-scalespb = sbb.*cos(2*pi*fc*t);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -