|
|
|||
|
|
| Mathematica Tutorial | Functions »|Tutorials »|More About » |
| Prepend[list,element] | add element at the beginning of list |
| Append[list,element] | add element at the end of list |
| Insert[list,element,i] | insert element at position i in list |
| Insert[list,element,-i] | insert at position i counting from the end of list |
| Riffle[list,element] | interleave element between the entries of list |
| Delete[list,i] | delete the element at position i in list |
| ReplacePart[list,i->new] | replace the element at position i in list with new |
| ReplacePart[list,{i,j}->new] | replace list[[i, j]] with new |
Functions for manipulating elements in explicit lists.
|
|
|
|
|
|
|
|
| m[[i,j]]=new | replace the (i, j)th element of a matrix |
| m[[i]]=new | replace the ith row |
| m[[All,i]]=new | replace the ith column |
|
|
|