The vector slice operator extracts entries of the vector x, starting at index (index of first vector component would be ) with incrementation of elements till the last index was reached.
: the 1st index of the slice.
: the last index of the slice.
Negative entries defining the index to the end of the vector: -1 is the second last element of the vector
: the increment, might also be negative.
Syntax
Types
Variable Name | Value Type | Variable Type | ||
---|---|---|---|---|
Arguments: | x | real, complex | vector | |
| real | scalar | ||
| real | scalar | ||
| real | scalar | ||
Result: | real, complex | vector |
Calculator Input
Use the
button to complete the operation.Example
ID | Description | Type | Value | Expression | |
---|---|---|---|---|---|
x | Argument | REAL VECTOR |
| [0,1,2,3,4] | |
| Argument | REAL | 1 | 1 | |
| Argument | REAL | 4 | 4 | |
| Argument | REAL | 2 | 2 | |
z1 | Result | REAL VECTOR |
| x[istart : iend : nstep] | |
z2 | Result | REAL VECTOR |
| x[1 : -1 : 1] |