?? remove_mean.m
字號:
function [unbiased_signal]=remove_mean(received_signal)% [unbiased_signal]=remove_mean(received_signal)%% % Output:% unbiased_signal - Received signal minus its mean.% % Input:% received_signal - Signal from analog-digital converter in frontend.%% Short Theoretical Background for the Function:% % Creating an unbiased signal in the receiver simply% by removing the mean of incoming signal.%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%% Function part of simulation for Space-Time%%% coding project, group Grey-2001.%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Author: Stefan Uppg錼d% Date: 30-03-2001% Version: 1.0% Revision (Name & Date & Comment):%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%K = length(received_signal);sum = sum(received_signal);mean_rec = sum/K;unbiased_signal = received_signal - mean_rec;%%%%%% Of course, the mean-function in Matlab could have been used.%%% Assume my operations are equivalent in calculation-comsumtion.%%%
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -