# timeStretch(a)

Stretches a series of data points by replicating them.

### Syntax

o_timeStretch(a)
  a: Array1d number - an input array of numerical values
  xFactor: scalar Int - number of times to repeat each input value
  return: array 1D - input values repeated xFactor times

### Usage

Designed for use in graphically displaying values. Since each value is repeated multiple times, graphs are simple made with levels shown rather than just data points.

### Location

menu: veeos ==> Data ==> timeStretch

library: dataLib

### Example

o_timeStretch([2 6 3 6 7],3) returns [2 2 2 6 6 6 3 3 3 6 6 6 7 7 7]

### Notes

Where this is intended and is quite useful is in visualizing real-world signals that are controlled by discrete values. Classic case would be the time output of a DAC.

### Reference

### Dependencies

### Supported On

VEE7.0+, all platforms

### See Also

© 2015-2017. All Rights Reserved. Stan Bischof (stan@worldbadminton.com). Last updated 24 February 2017 09:07.