source:
proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/missing-data/fp_submatrix.m
@
37
Last change on this file since 37 was 37, checked in by , 14 years ago | |
---|---|
File size: 384 bytes |
Line | |
---|---|
1 | function [submat, subcols] = fp_submatrix(pair,M,INC) |
2 | % pair is a 2x1 matrix listing the frames used. Return the submatrix containing |
3 | % the four rows from these frames, and all fully occupied columns, along with |
4 | % the indices of these columns. |
5 | subrows = [2*pair(1,1)-1, 2*pair(1,1), 2*pair(2,1)-1, 2*pair(2,1)]; |
6 | subcols = find(sum(INC(subrows,:)) == 4); |
7 | submat = M(subrows,subcols); |
Note: See TracBrowser
for help on using the repository browser.