📄 qf.m
字号:
function p = qf(xlist)% % Compute the Q function:%% function p = qf(x)% p = 1/sqrt(2pi)int_x^infty exp(-t^2/2)dt% Vector arguments are allowed.% Copyright 2004 by Todd K. Moon% Permission is granted to use this program/data% for educational/research onlyp = zeros(size(xlist));i = 0;for x = xlist i = i+1; if(x < 0) p(i) = 1- 0.5*erfc(-x/sqrt(2)); else p(i) = 0.5*erfc(x/sqrt(2)); endend
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -