📄 aaexponentialpdf.m
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -