matlab q函数,标准正态分布的Q函数用matlab怎么写标准正态分布从x到无穷大积分也就是Q函数用matlab怎么写吖还有它的反函数怎么写...

本文介绍了在Matlab中如何使用qfunc()函数来计算标准正态分布从x到无穷大的积分,即Q函数。同时,还讲解了qfuncinv()函数,它是Q函数的反函数。通过示例展示了这两个函数在矩阵运算中的应用。
摘要由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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值