Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Extracting data from 1 table with {x,y} in anot...' topicStudent Support Forum > General > Archives > "Extracting data from 1 table with {x,y} in anot..."

< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic
Author Comment/Response
Forum Moderator
email me
07/28/12 2:29pm

"and extract data". You can use the documentation search under Help menu - Documentation Center with key words.

_Extract_ is the tool you want.

In[4]:=
dat = ImportString["2 4 0 45
3 2 1 98
1 2 0 52
3 4 2 75 ", "Table"]

Out[4]= {{2, 4, 0, 45}, {3, 2, 1, 98}, {1, 2, 0, 52}, {3, 4, 2, 75}}

In[5]:=
Extract[dat, {{1, 4}, {1, 4}, {2, 4}, {2, 4}, {2, 4}, {2, 4}, {4, 4}}]

Out[5]= {45, 45, 98, 98, 98, 98, 75}



URL: ,

Subject (listing for 'Extracting data from 1 table with {x,y} in anot...')
Author Date Posted
Extracting data from 1 table with {x,y} in anot... Adam Kustka 07/27/12 10:27am
Re: Extracting data from 1 table with {x,y} in ... Forum Modera... 07/28/12 2:29pm
Re: Extracting data from 1 table with {x,y} in ... Bill Simpson 07/28/12 2:47pm
< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic