source:
proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/missing-data/split_matrix.m
@
37
Last change on this file since 37 was 37, checked in by , 14 years ago | |
---|---|
File size: 222 bytes |
Rev | Line | |
---|---|---|
[37] | 1 | function [M1, M2] = split_matrix(M) |
2 | % Splits a matrix so the odd and even rows go to two different matrices. | |
3 | % This is useful for structure-from-motion. | |
4 | numrows = size(M,1); | |
5 | M1 = M(1:2:numrows,:); | |
6 | M2 = M(2:2:numrows,:); |
Note: See TracBrowser
for help on using the repository browser.