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 Comment | Next Comment >Help | Reply To Comment | Reply To Topic | Post New Topic
Author Comment/Response
Xavier
05/12/08 07:02am

Hey,

A line to define C :

C=Delete[B, Position[Map[# <= threshold &, A], True]]

Basically, I test if each element of A is under the threshold and I get the positions of those numbers. I then delete all the elements at those positions in B and get also C.

Hope it is useful. Please ask if it is not clear enough.
Cheers,

Xavier

URL: http://xroudaut.free.fr,

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 Comment | Next Comment >Help | Reply To Comment | Reply To Topic | Post New Topic





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