index#
Create an index to get or replace a subset of a matrix
Available in: math cells, REPL.
Syntax#
[start]
[start:end]
[start:step:end]
[start1, start 2, ...]
[start1:end1, start2:end2, ...]
[start1:step1:end1, start2:step2:end2, ...]
Arguments and behavior#
Arguments must match one of the syntax forms above. Use the example as a starting point; arrays and numeric types are accepted only by compatible overloads. The example returns matrix.
Example#
Edit the inputs, then use Run or Reset. Changes stay in this example.
Example
index(2)Interactive examples could not load. You can still copy the expressions.
Expected result: matrix.
See also#
bignumber · boolean · complex · matrix · number · range · string · unit