q.m
来自「《Digital and Analog Communications Syste」· M 代码 · 共 21 行
M
21 行
function d=q(z)
% FILE: Q.M
% CALL: d = q(z)
% This function returns the value of Q(z), using the erf(z) command to
% evaluate the Q(z) function.
% z is assumed to be a "scalar" or a vector.
z = z(:);
temp = length(z);
d = zeros(temp,1);
for (i = 1:temp)
d(i) = 0.5*(1-erf((z(i)/sqrt(2))));
end;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?