carrier.m

来自「这个程序主要是实现空时编码的matlab编解码仿真。」· M 代码 · 共 36 行

M
36
字号
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 + =
减小字号Ctrl + -
显示快捷键?