|
|
||
|
|
| Built-in Mathematica Symbol | Tutorials »|See Also »|More About » |
| expr[[i]] or Part[expr, i] gives the i |
| expr[[-i]] counts from the end. |
| expr[[i, j, ...]] or Part[expr, i, j, ...] is equivalent to expr[[i]][[j]].... |
| expr[[{i1, i2, ...}]] gives a list of the parts i1, i2, ... of expr. |
| expr[[m;;n]] gives parts m through n. |
| expr[[m;;n;;s]] gives parts m through n in steps of s. |
| expr[[m;;]] | part m through the end | |
| expr[[;;n]] | from the beginning to part n | |
| expr[[;;,j]] | column j | |
| expr[[m1;;n1,m2;;n2]] | submatrix |
Pick out a part of a list:
Pick out a sequence of parts:
Pick out a part of a matrix:
The second row of a matrix:
The second column of a matrix:
An element 2 from the end of a list:
A list of parts:
Reassign a part:
Reassign a sequence of parts:
Part works with expressions of any kind, not just lists:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| © 2008 Wolfram Research, Inc. |