Wolfram ResearchPRODUCTSPURCHASEFOR USERSCOMPANYOUR SITES
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.

Documentation / Mathematica / Built-in Functions / Numerical Computation / Data Manipulation /

Further Examples: Take

Here is a list.

In[1]:=

Out[1]=

This takes the first three elements of .

In[2]:=

Out[2]=

This takes the last two elements of .

In[3]:=

Out[3]=

This takes elements through in steps of .

In[4]:=

Out[4]=

Here is a matrix.

In[5]:=

Out[5]//MatrixForm=

This takes the submatrix consisting of the last rows of the first columns of .

In[6]:=

Out[6]//MatrixForm=

This defines the function iteratedTake which partitions a list s into non-overlapping sublists where the first sublist has t[[1]] elements, the second t[[2]] elements, and so on. If checkArgs[s, t] gives False then iteratedTake[s, t] will return unevaluated.

In[7]:=

In[8]:=

In[9]:=

Out[9]=

In[10]:=



Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information


 © 2009 Wolfram Research, Inc.  Terms of Use  Privacy Policy | [ja] |
Sign up for our newsletter: