⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 find_lcr.m

📁 《Wireless Communications and Networking》(《无线通信和网络》)配套MATLAB源码。该书涵盖了第一、二、和三代蜂窝通信系统从物理层到网络层的关键特性。
💻 M
字号:
%find_lcr computes the LCR of NSamples of magnitude Z for different threshold values%input parameters: Z        - magnitude%                  NSamples - the number of samples%                  T        - Total Time%                  std_r    - standard deviation for Z %outputs:          LCR      - level crossing rate%                  Rn       - normalized threshold p(dB)%                  R        - thresholdfunction [LCR, Rn, R] = find_lcr(Z, NSamples, T, std_r)min = -10;max = 10;N = 100;delta = (max - min) / N;for k=1:N   Mt = 0;   Rn(k) = min + k * delta;   R(k) = 10^(Rn(k)/20)*sqrt(2)*std_r;   for j=2:NSamples      if Z(j) > R(k) & Z(j-1) <= R(k)         Mt = Mt + 1;      end   end   LCR(k) = Mt / T;endreturn;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -