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

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

Added original make3d

File size: 255 bytes
Line 
1function s = shortsize(x)
2% shortsize(x) returns a vector of the non-unit dimensions of x.
3%
4% Examples:
5%   shortsize(1:n) = n
6%   shortsize((1:n)') = n
7%   shortsize(zeros(4,1,2)) = [4 2]
8%   shortsize([]) = [0 0]
9
10s = size(x);
11s(s==1) = [];
Note: See TracBrowser for help on using the repository browser.