source:
proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/BlueCCal/MultiCamSelfCal/MartinecPajdla/utils/combfirst.m
Last change on this file was 37, checked in by , 14 years ago | |
---|---|
File size: 263 bytes |
Line | |
---|---|
1 | %combfirst Returns the first combination in order of shifting the least left |
2 | %number to the right. |
3 | % |
4 | % function com=combfirst(n, k) |
5 | % |
6 | %n and k has the meaning of combination number. |
7 | function com=combfirst(n, k) |
8 | |
9 | com=find(1 == ones(1,k-1)); |
10 | com=[com k-1]; |
11 | |
12 | return |
Note: See TracBrowser
for help on using the repository browser.