source:
proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/missing-data/block_invert.m
Last change on this file was 37, checked in by , 14 years ago | |
---|---|
File size: 324 bytes |
Line | |
---|---|
1 | function [v] = block_invert(A,r,w) |
2 | |
3 | cntr1 = 1; % assumes no leading rows or cols of zeros in A |
4 | % will need to fix this+++ |
5 | cntr2 = 1; |
6 | while (size(A) > 0) |
7 | [block, A] = get_block(A,r); |
8 | v(cntr1:r+cntr1-1) = block\w(cntr2:cntr2 + size(block,1) - 1); |
9 | cntr1 = cntr1+r; |
10 | cntr2 = cntr2+size(block,1); |
11 | end; |
12 | v = v'; |
Note: See TracBrowser
for help on using the repository browser.