zoukankan      html  css  js  c++  java
  • Matlab函数——awgn(高斯噪声)


    awgn
    将白色高斯噪声添加到信号中



    语法 
    y = awgn(x,snr) 
    y = awgn(x,snr,sigpower) 
    y = awgn(x,snr,'measured') 
    y = awgn(x,snr,sigpower,state) 
    y = awgn(x,snr,'measured',state) 
    y = awgn(...,powertype) 



    描述
    y = awgn(x,snr)将白高斯噪声添加到向量信号x中。标量snr指定了每一个采样点信号与噪声的比率,单位为dB。如果x是复数的,awgn将会添加复数噪声。这个语法假设x的能量是0dBW。
    y = awgn(x,snr,sigpower)和上面的语法相同,除了sigpower是x的能量,单位为dBW。
    y = awgn(x,snr,'measured')和y = awgn(x,snr)是相同的,除了agwn在添加噪声之前测量了x的能量。
    y = awgn(x,snr,sigpower,state)和y = awgn(x,snr,sigpower)是相同的,除了awgn首先重置了正态随机数产生器randn的状态为整数状态。
    y = awgn(x,snr,'measured',state)和y = awgn(x,snr,'measured')是相同的,除了awgn首先重置了正态随机数产生器randn的状态为整数状态。
    y = awgn(...,powertype)和前面的语法相同,除了字符串powertype指定了snr和sigpower的单位。powertype的选择有'db' and 'linear',如果powertype是'db',那么snr是按照dB为单位测量的,sigpower是按照dBW为单位测量的。如果powertype是线性的,snr是按照一个比率测量的,sigpower是以瓦特为单位测量的。Relationship Among SNR, Es/N0, and Eb/N0
    对于SNR和其他的噪声相对能量测量的关系,查看Describing the Noise Level of an AWGN Channel。

    例子
    The commands below add white Gaussian noise to a sawtooth signal. It then plots the original and noisy signals.
    t = 0:.1:10;
    x = sawtooth(t); % Create sawtooth signal.
    y = awgn(x,10,'measured'); % Add white Gaussian noise.
    plot(t,x,t,y) % Plot both signals.
    legend('Original signal','Signal with AWGN');



    Several other examples that illustrate the use of awgn are in Getting Started. The following demos also use awgn: basicsimdemo, vitsimdemo, and scattereyedemo.



    See Also
    wgn, randn, bsc, AWGN Channel
  • 相关阅读:
    bzoj 1121: [POI2008]激光发射器SZK 思维_结论
    bzoj 1189: [HNOI2007]紧急疏散evacuate 分层图最大流 + 拆点 + 二分
    luogu 3467 [POI2008]PLA-Postering 单调栈
    BZOJ1143: [CTSC2008]祭祀river 网络流_Floyd_最大独立集
    BZOJ 1123: [POI2008]BLO 求割点+乘法原理+计数
    bzoj 1191: [HNOI2006]超级英雄Hero 网络流 + 残量网络
    无题
    numpy模块(对矩阵的处理,ndarray对象)
    python面向过程编程
    logging模块,程序日志模板
  • 原文地址:https://www.cnblogs.com/xuxinstyle/p/9128893.html
Copyright © 2011-2022 走看看