source: proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/lightspeed/graphics/test_hhist.m @ 37

Last change on this file since 37 was 37, checked in by (none), 14 years ago

Added original make3d

  • Property svn:executable set to *
File size: 307 bytes
Line 
1% demonstrate use of hhist
2
3figure;
4x = sample([0.1 0.2 0.3 0.4], 1000);
5hhist(x);
6
7figure;
8% verify density for product of indep normals
9x = prod(randn(2,100000));
10ts = linspace(-1,1,1000);
11z = hhist(x, ts);
12h = plot(ts, z, ts, besselk(0,abs(ts))*1/pi);
13%set(h(2),'LineWidth',2)   
14axis_pct
Note: See TracBrowser for help on using the repository browser.