source:
proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/lightspeed/sizeJava.m
@
177
Last change on this file since 177 was 37, checked in by , 15 years ago | |
---|---|
File size: 324 bytes |
Line | |
---|---|
1 | function 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 | |
8 | sz(1) = size(jv,1); |
9 | sz(2) = size(jv(1,:),1); |
10 | if sz(2) == 0 |
11 | % workaround matlab's bug |
12 | sz(2) = 1; |
13 | end |
Note: See TracBrowser
for help on using the repository browser.