Student Support Forum
-----
Student Support Forum: 'Tables: use values from A to get val. from B' topicStudent Support Forum > General > Archives > "Tables: use values from A to get val. from B"

< Previous CommentHelp | Reply To Comment | Reply To Topic | Post New Topic
Author Comment/Response
yehuda ben-shimol
05/13/08 4:12pm

Hi,
The new Pick function does a better work
A = {1, 0, 1, 0, 0, 1}
B = {2, 3, 4, 6, 9, 134}
Pick[B, A, 1]

if you need a more general condition you can use

Pick[B, A, _?(# > 0 &)]

best
yehuda

URL: ,

Subject (listing for 'Tables: use values from A to get val. from B')
Author Date Posted
Tables: use values from A to get val. from B Thepillow 05/11/08 12:37pm
Re: Tables: use values from A to get val. from B Xavier 05/12/08 07:02am
Re: Tables: use values from A to get val. from B yehuda ben-s... 05/13/08 4:12pm
< Previous CommentHelp | Reply To Comment | Reply To Topic | Post New Topic





 © 2008 Wolfram Research, Inc.  Terms of Use  Privacy Policy |
Sign up for our newsletter: