代码搜索结果
找到约 10,000 项符合
Raspberry Pi 的代码
il3_8fun.m
% il3_8fun.m
function f=il3_8fun(x,p)
f=1/sqrt(2*pi)*exp((-(x-p).^2)/2).*log2(2./(1+exp(-2*x.*p)));
cm_f34.m
% script that generates the figure 3.4 of Carrier modulation chapter
snrindB=0:0.25:18;
for i=1:length(snrindB),
snr=10^(0.1*snrindB(i));
P2(i)=Qfunct(sqrt(2*snr));
P4(i)=2*Qfunct(sqrt(4*snr)*si
xmoment.c
/* Driver for routine moment */
#include
#include
#define NRANSI
#include "nr.h"
#include "nrutil.h"
#define PI 3.14159265
#define NPTS 5000
#define NBIN 100
#define NP
qfunct.m
function [y]=Qfunct(x)
% [y]=Qfunct(x)
% y = 1/sqrt(2*pi) * integral from x to inf of exp(-t^2/2) dt.
% y = (1/2) * erfc(x/sqrt(2)).
y=(1/2)*erfc(x/sqrt(2));
gngauss.m
function [gsrv1,gsrv2]=gngauss(m,sgma)
%gngauss函数用来生成两个均值为m方差为sgma的自由高斯随机变量
if nargin == 0,
m=0; sgma=1;
elseif nargin == 1,
sgma=m; m=0;
end;
u=rand;
z=sgm
gaussian.c
#include
#define pi 3.1415
double
gaussian(double x)
{
double resu;
resu=-0.5*x*x;
resu=exp(resu);
resu=resu/sq
gamicheval.m
function [sol,val] = gaMichEval(sol,options)
val = 21.5 + sol(1) * sin(4*pi*sol(1)) + sol(2)*sin(20*pi*sol(2));
%G=zeros(0);
%val = sqrt(sol(1)) * sin(2*sol(1)) + sqrt(sol(1))*cos(5*sol(1))+5;
cos.m
function varargout = cos(varargin)
%COS (overloaded)
% Author Johan L鰂berg
% $Id: cos.m,v 1.14 2008/04/08 09:02:48 joloef Exp $
switch class(varargin{1})
case 'double'
error('Ove
sin.m
function varargout = sin (varargin)
%SIN (overloaded)
% Author Johan L鰂berg
% $Id: sin.m,v 1.15 2008/04/08 09:02:48 joloef Exp $
switch class(varargin{1})
case 'double'
error('Ov
ex0425.m
%用罗盘图和羽毛图绘制复向量
theta=0:0.2:2*pi;
z=sin(theta).*exp(j*theta);
compass(z)
feather(z)