source:
proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/missing-data/random_frame_pairs.m
@
37
Last change on this file since 37 was 37, checked in by , 14 years ago | |
---|---|
File size: 283 bytes |
Rev | Line | |
---|---|---|
[37] | 1 | function randompairs = random_frame_pairs(n) |
2 | % Given n frames, pick all different pairs of frames, and randomize their order. | |
3 | % This is returned in a 2xn matrix, where each column gives a pair of frames. | |
4 | pairs = (all_ntuples(2,n))'; | |
5 | randompairs = pairs(1:2,randperm(size(pairs,2))); |
Note: See TracBrowser
for help on using the repository browser.