aaexponentialpdf.m
来自「Adaptive Filtering Primer with MATLAB」· M 代码 · 共 9 行
M
9 行
function[x,m,sd]=aaexponentialpdf(b,N)
%function[x,m,sd]=aaexponentialpdf(b,N)
for i=1:N
x(i)=-b*log(rand);%log is MATLAB function that gives
end; %the natural algorithm;
m=mean(x); %mean(x)=MATLAB function providing the mean value;
sd=std(x); %std(x)=MATLAB function providing the standard
%deviation which is the square root of the variance;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?