HTBasic Help
×
Menu
Index

MAT REORDER

Reorders array elements by a supplied subscript list.
 
 MAT REORDER array-name[$] BY vector [, subscript]
 
Usage:
MAT REORDER Array BY Vector,2
MAT REORDER Elements$ BY New
 
Example:           MAT REORDER.BAS
 
Description:
The array is reordered according to the values in the vector. The optional subscript is rounded to an integer and specifies which subscript is to be reordered. If it is not specified it is assumed to be one.
 
The vector must be a one dimensional array which is the same size as the specified subscript. It contains integers specifying valid subscript values with no duplicate values. The MAT SORT statement may be used to generate vector values.
 

COMPLEX Arrays

MAT REORDER can reorder a complex array, but a reorder vector can not be complex.
 
See Also: