Prev Next timeaxis

Create a Time Axis Vector
Syntax y = timeaxis(dt,N)
Include: include spt\timeaxis.oms
See Also freqaxis

ARGUMENTS:  
   INPUTS:  
      dt = SCALAR, any numerical type. Represents the
           interval between successive elements of returned
           vector.
      N  = SCALAR, any numerical type, coerced to integer
           before processing. Number of elements in returned
           vector.
   RETURN: COLUMN VECTOR. N-point linear time array, starting at
           0(zero), same type as input.

Description

Creates a column vector of N elements, starting at 0(zero) and linearly progressing in steps of 'dt'. Return type is the same as that of 'dt'. N must be >0 or 'novalue' is returned. Useful for creating time axis vectors, or vectors used in design procedures.

Example
Make a time axis vector of 11 points and a 0.20 spacing.

N  = 11;
dt = .20d0;
t  = timeaxis(dt,N);
t
Yields:

{
  0.00
  0.20
  0.40
  0.60
  0.80
  1.00
  1.20
  1.40
  1.60
  1.80
  2.00
}