edit
randexp(1)
ans =
1.6859
randexp(ones(1,100))
ans =
Columns 1 through 4
2.3622 0.1358 2.4462 1.0006
Columns 5 through 8
0.1026 0.3264 0.7916 3.1584
Columns 9 through 12
3.3492 0.1715 3.5265 3.1504
Columns 13 through 16
0.6643 1.6108 0.1530 0.5478
Columns 17 through 20
2.4738 1.5712 3.2063 1.0664
Columns 21 through 24
0.0364 1.8913 2.7180 1.1355
Columns 25 through 28
1.4177 1.3592 0.4980 1.0656
Columns 29 through 32
0.1878 1.2243 0.0324 0.3242
Columns 33 through 36
0.0473 0.1022 1.7342 1.1869
Columns 37 through 40
0.3814 3.0002 0.0351 0.5776
Columns 41 through 44
0.4806 1.4504 1.5857 0.2069
Columns 45 through 48
0.6729 0.5898 1.0393 1.2357
Columns 49 through 52
1.4052 0.3230 1.1385 1.0645
Columns 53 through 56
0.1775 0.1267 0.6899 3.2125
Columns 57 through 60
0.4161 0.8801 0.2534 1.3914
Columns 61 through 64
0.2945 0.7051 1.2009 2.2155
Columns 65 through 68
3.2013 0.7923 0.1492 0.1617
Columns 69 through 72
0.2977 1.8371 0.2934 1.6835
Columns 73 through 76
0.2791 2.6488 0.4308 0.2189
Columns 77 through 80
0.2891 0.9572 0.6411 0.4333
Columns 81 through 84
1.7768 0.8801 0.7979 2.4913
Columns 85 through 88
0.3366 1.4155 1.4013 0.4788
Columns 89 through 92
0.8389 0.0789 0.0555 0.7567
Columns 93 through 96
1.5103 2.7183 0.1392 0.8412
Columns 97 through 100
0.6337 0.0120 0.4112 0.1770
randexp([1,2])
ans =
1.5813 0.1864
testva(@randexp,lambda*ones(1,10000))
??? Undefined function or variable 'lambda'.
lambda=1
lambda =
1
testva(@randexp,lambda*ones(1,10000))
ans =
9999
lambda=0.5
lambda =
0.5000
testva(@randexp,lambda*ones(1,10000))
close al
??? Error using ==> close at 82
Specified window does not exist.
close all
testva(@randexp,lambda*ones(1,10000))
testva(@randexp,lambda*ones(1,10000))
close all
testva(@randexp,lambda*ones(1,10000))
% Modify expression to add input arguments.
% Example:
% a = [1 2 3; 4 5 6];
% foo(a);
simulacodamm1
Elapsed time is 64.410118 seconds.
Elapsed time is 74.235447 seconds.
% Modify expression to add input arguments.
% Example:
% a = [1 2 3; 4 5 6];
% foo(a);
simulacodamm1
Elapsed time is 20.887680 seconds.
Elapsed time is 20.761899 seconds.
edit erfinv
edit erfcore
help erfc
ERFC Complementary error function.
Y = ERFC(X) is the complementary error function for each element
of X. X must be real. The complementary error function is
defined as:
erfc(x) = 2/sqrt(pi) * integral from x to inf of exp(-t^2) dt.
= 1 - erf(x).
Class support for input X:
float: double, single
See also erf, erfcx, erfinv, erfcinv.
Reference page in Help browser
doc erfc
help erfinv
ERFINV Inverse error function.
X = ERFINV(Y) is the inverse error function for each element of Y.
The inverse error function satisfies y = erf(x), for -1 <= y <= 1
and -inf <= x <= inf.
Class support for input Y:
float: double, single
See also erf, erfc, erfcx, erfcinv.
Reference page in Help browser
doc erfinv
edit erfinv
uiopen('/home/accounts/personale/clrmrc90/aa1213/sistemi_stocastici/randnorm.m', true);
testva(@randnorm,mu*ones(1,10000),sigma*ones(1,10000))
??? Undefined function or variable 'mu'.
mu=0
mu =
0
sigma=1
sigma =
1
testva(@randnorm,mu*ones(1,10000),sigma*ones(1,10000))
close all
testva(@randnorm,mu*ones(1,10000),sigma*ones(1,10000))
randn
ans =
-0.4326
% Modify expression to add input arguments.
% Example:
% a = [1 2 3; 4 5 6];
% foo(a);
simulacodamm1
Elapsed time is 42.339208 seconds.
Elapsed time is 41.174297 seconds.
exit