cp0802_rmsds.m
来自「IEEEuwb仿真UWB信道冲击相应;rmsds仿真UWB信道的均方根时延扩展;」· M 代码 · 共 19 行
M
19 行
%
% FUNCTION 8.9 : "cp0802_rmsds"
%
% Evaluates the rms delay spread 'rmsds' of a channel
% impulse response 'h' sampled at the frequency 'fc'
%
function [rmsds]=cp0802_rmsds(h,fc)
%=====================================================
% Step One - Evaluation of the rms delay spread
%=====================================================
dt=1/fc;
ns=length(h); % number of samples representing the channel impulse response
time=(0:dt:(ns-1)*dt);
den=sum(h.^2);
num1=sum(time.*(h.^2));
num2=sum((time.^2).*(h.^2));
rmsds=sqrt((num2/den)-(num1/den)^2);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?