Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.


JS
Posts:
49
Registered:
8/4/08


Re: Identifying missing points in grid
Posted:
Nov 22, 2010 5:55 PM


On Nov 22, 6:30 pm, ImageAnalyst <imageanal...@mailinator.com> wrote: > Several ways, like set your 2D array to be all some known value, like > true, then go through your list assigning the ones you have to false. > Then use the find command to get pairedup row,column coordinates > > array2D = true(100,100); % Whatever size you need. > for k = 1 : length(X) > % Assuming X and Y are integers: > array2D(X(k), Y(k)) = false; > end > [missingRows missingCols] = find(array2D);
Yes, of course  that would do it. Thanks!
JS



