matlab里面q函数,标准正态分布的Q函数用 matlab 怎么写

本文介绍了Matlab中用于计算标准正态分布Q函数的qfunc()和其反函数qfuncinv()。qfunc()是1减去标准化正态分布的累积分布函数,与互补误差函数erfc()有关。qfuncinv()则返回Q函数值为x时对应的参数。通过示例展示了这两个函数的使用和相互关系。
摘要由CSDN通过智能技术生成

Matlab中本身有Q函数,即qfunc() 其反函数是qfuncinv()

--------------------------------

help qfunc

qfunc

Q function

Syntax

y = qfunc(x)

Description

y = qfunc(x) is one minus the cumulative distribution function of the standardized normal random variable,evaluated at each element of the real array x.For a scalar x,the formula is

The Q function is related to the complementary error function,erfc,according to

Examples

The example below computes the Q function on a matrix,element by element.

x = [0 1 2; 3 4 5];

format short e % Switch to floating point format for displays.

y = qfunc(x)

format % Return to default format for displays.

The output is below.

y =

5.0000e-001 1.5866e-001 2.2750e-002

1.3499e-003 3.1671e-005 2.8665e-007

--------------------------------------------

  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值