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

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

Added original make3d

File size: 324 bytes
Line 
1function sz = sizeJava(jv)
2% sizeJava(jv) returns the size of a java array, in a manner corresponding
3% to 'size' on matlab arrays.
4
5% Written by Tom Minka
6% (c) Microsoft Corporation. All rights reserved.
7
8sz(1) = size(jv,1);
9sz(2) = size(jv(1,:),1);
10if sz(2) == 0
11  % workaround matlab's bug
12  sz(2) = 1;
13end
Note: See TracBrowser for help on using the repository browser.