声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 3465|回复: 10

[综合讨论] matlab7.3中貌似没有awgn函数?

[复制链接]
发表于 2006-12-5 21:04 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?我要加入

x
matlab7.3中貌似没有awgn函数?
我今天help awgn,居然没找到,以前用matlab6.5用的awgn函数,现在报错。
高人帮忙啊
回复
分享到:

使用道具 举报

发表于 2006-12-5 22:02 | 显示全部楼层
原帖由 hyl2323 于 2006-12-5 21:04 发表
matlab7.3中貌似没有awgn函数?
我今天help awgn,居然没找到,以前用matlab6.5用的awgn函数,现在报错。
高人帮忙啊



不可能,2006a和2006b我都用过,都有
发表于 2006-12-6 10:54 | 显示全部楼层
说明错误提示
 楼主| 发表于 2006-12-6 12:12 | 显示全部楼层
我确实找不到该函数,wgn也找不到,可能我安装的工具包有点少吧,不是完全安装的,你们知道这两个函数是在哪个工具包里么?我要补安装
 楼主| 发表于 2006-12-6 12:13 | 显示全部楼层
>> help awgn

awgn.m not found.

Use the Help browser Search tab to search the documentation, or
type "help help" for help command options, such as help for methods.
发表于 2006-12-6 12:16 | 显示全部楼层
>> which awgn
D:\Program\matlab2006a\R2006a\toolbox\comm\comm\awgn.m

>> help awgn
AWGN Add white Gaussian noise to a signal.
    Y = AWGN(X,SNR) adds white Gaussian noise to X.  The SNR is in dB.
    The power of X is assumed to be 0 dBW.  If X is complex, then
    AWGN adds complex noise.

    Y = AWGN(X,SNR,SIGPOWER) when SIGPOWER is numeric, it represents
    the signal power in dBW. When SIGPOWER is 'measured', AWGN measures
    the signal power before adding noise.

    Y = AWGN(X,SNR,SIGPOWER,STATE) resets the state of RANDN to STATE.

    Y = AWGN(..., POWERTYPE) specifies the units of SNR and SIGPOWER.
    POWERTYPE can be 'db' or 'linear'.  If POWERTYPE is 'db', then SNR
    is measured in dB and SIGPOWER is measured in dBW.  If POWERTYPE is
    'linear', then SNR is measured as a ratio and SIGPOWER is measured
    in Watts.

    Example: To specify the power of X to be 0 dBW and add noise to produce
             an SNR of 10dB, use:
             X = sqrt(2)*sin(0:pi/8:6*pi);
             Y = AWGN(X,10,0);

    Example: To specify the power of X to be 0 dBW, set RANDN to the 1234th
             state and add noise to produce an SNR of 10dB, use:
             X = sqrt(2)*sin(0:pi/8:6*pi);
             Y = AWGN(X,10,0,1234);

    Example: To specify the power of X to be 3 Watts and add noise to
             produce a linear SNR of 4, use:
             X = sqrt(2)*sin(0:pi/8:6*pi);
             Y = AWGN(X,4,3,'linear');

    Example: To cause AWGN to measure the power of X, set RANDN to the
             1234th state and add noise to produce a linear SNR of 4, use:
             X = sqrt(2)*sin(0:pi/8:6*pi);
             Y = AWGN(X,4,'measured',1234,'linear');

    See also wgn, randn, and bsc.


    Reference page in Help browser
       doc awgn
 楼主| 发表于 2006-12-6 15:23 | 显示全部楼层
我的是matlab 2006b,toolbox文件夹下面没有comm文件夹
发表于 2006-12-6 18:19 | 显示全部楼层

回复 #1 hyl2323 的帖子

>> help comm
  Communications Toolbox
  Version 3.3 (R2006a) 03-Feb-2006

  Signal Sources.
    randerr      - Generate bit error patterns.
    randint      - Generate matrix of uniformly distributed random integers.
    randsrc      - Generate random matrix using prescribed alphabet.
    wgn          - Generate white Gaussian noise.

  Performance Evaluation.
    berawgn      - Bit error rate (BER) for uncoded AWGN channels.
    bercoding    - Bit error rate (BER) for coded AWGN channels.
    berconfint   - BER and confidence interval of Monte Carlo simulation.
    berfading    - Bit error rate (BER) for Rayleigh fading channels.
    berfit       - Fit a curve to nonsmooth empirical BER data.
    bersync      - Bit error rate (BER) for imperfect synchronization.
    biterr       - Compute number of bit errors and bit error rate.
    distspec     - Compute the distance spectrum of a convolutional code.
    eyediagram   - Generate an eye diagram.
     .......................................................

  后面的很多命令省略了,不贴出来了,你知道是哪个工具箱就可以啦

[ 本帖最后由 心灯 于 2006-12-6 18:20 编辑 ]

评分

1

查看全部评分

 楼主| 发表于 2006-12-8 11:29 | 显示全部楼层
知道了,通信的工具葙。我可能没装这个。补装一下,呵呵。
非常感谢心灯的热心帮助!

评分

1

查看全部评分

发表于 2013-11-8 15:50 | 显示全部楼层
2012版本中也没有。
发表于 2013-11-8 22:30 | 显示全部楼层
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-6-21 14:04 , Processed in 0.055751 second(s), 19 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表