arrayRev(a)

Reverses the order of any 1D array.


Syntax

o_arrayRev(a)
a: array 1D Any - 1D array to be processed
return: same type as input - array is in reverse order

Usage

Use any time you would like a 1D array in reverse order. Works with any data type.

Location

menu: veeos ==> Math ==> arrayRev

library: mathLib

Example

o_arrayRev( [1,2,3,4] ) returns  [4,3,2,1]
o_arrayRev( ["first","second","last"] ) returns [ "last" , "second", "first" ]

Notes

If the input is scalar no change is made. If the input is Waveform or Spectrum the data array is reversed but the time or freq mapping is unaffected. This uses no loops so is fast.

Reference

Dependencies

Supported On

VEE 7.0+, all platforms

See Also

arrayConcat


© 2015. All Rights Reserved.  Stan Bischof (stan@worldbadminton.com). Last updated 04 November 2015 11:31. © 2015.