| 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: , |
|