|See Also||sinwave , sqrwave , triwave|
'fc' = SCALAR, any numerical type. Center frequency [Hz]
Coerced to DOUBLE for local processing.
'pc ' = SCALAR, any numerical type, Constant phase angle
of carrier [radians]. Coerced to DOUBLE for
'fs' = SCALAR, any numerical type. Sampling rate
[Samples/second]. Coerced to DOUBLE for local
'N' = SCALAR, any numerical type. Requested row
dimension (number of samples). Coerced to DOUBLE
for local processing.
'M' = SCALAR, any numerical type. Requested column
dimension (optional). Coerced to DOUBLE for local
RETURN: MATRIX, DOUBLE, each column being a sampled sawtooth
waveform with the requested parameters.
This function generates samples from a sawtooth shaped waveform. The frequency of the waveform in [Hz] is specified through argument 'fc'. A delay in the waveform, expressed in [radians] is input via argument 'pc'. The sampling rate of the system is given through 'fs' in [Samples/second]. All of these may be of any numerical type and are all coerced to DOUBLE for local processing. The number of requested samples in given through argument 'N' and will be the row dimension of the returned matrix. If 'M' is included a matrix will be returned where each of M columns is an identical copy of the requested waveform. If 'M' is omitted a column vector is returned.
The returned waveform starts at zero for zero 'pc' and consists of samples taken from a waveform with peak value 1.0.
O>format double "f6.3"
[ 0.000 , 0.000 ]
[ 0.125 , 0.125 ]
[ 0.250 , 0.250 ]
[ 0.375 , 0.375 ]
[ 0.500 , 0.500 ]
[ 0.625 , 0.625 ]
[ 0.750 , 0.750 ]
[ 0.875 , 0.875 ]
[ -1.000 , -1.000 ]
[ -0.875 , -0.875 ]
[ -0.750 , -0.750 ]
[ -0.625 , -0.625 ]
[ -0.500 , -0.500 ]
[ -0.375 , -0.375 ]
[ -0.250 , -0.250 ]
[ -0.125 , -0.125 ]