Mathematica 9 is now available

ColumnTake

ColumnTake[data, spec] takes the columns specified by spec.
ColumnTake[data, n] takes the first n columns from data.
ColumnTake[data, -n] takes the last n columns from data.

• Examples: ColumnTake[{{1, 2, 3}, {4, 5, 6}}, 1] LongRightArrow

.
ColumnTake[{{1, 2, 3}, {4, 5, 6}}, 2] LongRightArrow
.
ColumnTake[{{1, 2, 3}, {4, 5, 6}}, -1] LongRightArrow
.
ColumnTake[{{1, 2, 3}, {4, 5, 6}}, -1] LongRightArrow
.
• See also:
Column, ColumnDrop.
    

Examples

Using InstantCalculators

Here are the InstantCalculators for the ColumnTake function. Enter the parameters for your calculation and click Calculate to see the result.

Entering Commands Directly

You can paste a template for this command via the Text Input button on the ColumnTake Function Controller.

This defines a 4 Cross 4 matrix called data.

This returns the first 2 columns of data.

This returns the last column of data.

Clear the variable definition.



Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.