source:
proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/lightspeed/shortsize.m
@
177
Last change on this file since 177 was 37, checked in by , 15 years ago | |
---|---|
File size: 255 bytes |
Line | |
---|---|
1 | function 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 | |
10 | s = size(x); |
11 | s(s==1) = []; |
Note: See TracBrowser
for help on using the repository browser.