Message Boards Message Boards

0
|
4814 Views
|
2 Replies
|
2 Total Likes
View groups...
Share
Share this post:

"Select" from List A Given Criteria on List B

Posted 5 years ago

A trivial example: Given: A = {1,2,3,4}; B={97,-44,18,-1} How is Select used to do something like: Select[A,B>0]

POSTED BY: Dave Lubbers
2 Replies

http://reference.wolfram.com/language/ref/Pick.html

For your example you might do

Pick[A, MapThread[Greater, {A, B}]]
POSTED BY: David Reiss

Thank you!

POSTED BY: Dave Lubbers
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract