Drexel dragonThe Math ForumDonate to the Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Identifying missing points in grid
Replies: 2   Last Post: Nov 22, 2010 5:55 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 49
Registered: 8/4/08
Re: Identifying missing points in grid
Posted: Nov 22, 2010 5:55 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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 paired-up 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!


Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum 1994-2015. All Rights Reserved.