Last change
on this file since 177 was
37,
checked in by (none), 15 years ago
|
Added original make3d
|
-
Property svn:executable set to
*
|
File size:
307 bytes
|
Line | |
---|
1 | % demonstrate use of hhist
|
---|
2 |
|
---|
3 | figure;
|
---|
4 | x = sample([0.1 0.2 0.3 0.4], 1000);
|
---|
5 | hhist(x);
|
---|
6 |
|
---|
7 | figure;
|
---|
8 | % verify density for product of indep normals
|
---|
9 | x = prod(randn(2,100000));
|
---|
10 | ts = linspace(-1,1,1000);
|
---|
11 | z = hhist(x, ts);
|
---|
12 | h = plot(ts, z, ts, besselk(0,abs(ts))*1/pi);
|
---|
13 | %set(h(2),'LineWidth',2)
|
---|
14 | axis_pct
|
---|
Note: See
TracBrowser
for help on using the repository browser.