


REFGEN Generate a sequence of signals with the corresponding time vector
Usage: ST = REFGEN(...)
OUTPUT: ST - generated signal sequence structure with the
following parameters:
ST.u % Generated signal sequence
ST.t % Generated times vector
ST.signals % Signal list
ST.numSignals % Number of signals in sequence
ST.Ts % Sampling interval
INPUT: series of parameters in form SIGNAL_TYPE, PARAMS, TIME which
can be the following
'prbs', [Tt A OFF S], T - PRBS7 sequence, Tt- single tap period [s],
A - amplitude, OFF - offset, S - 7bit starting
sequence of total duration T (alias:
'prbs7').
'c', A, T - constant value of amplitude A, total duration T.
'sin', [F A PHI OFF], T - sine wave of frequency F [Hz], amplitude A,
phase shift PHI and offset OFF with total
duration T.
'sq', [F A PHI OFF], T - square wave signal.
'tr', [F A PHI OFF], T - triangle wave signal.
'swt', [F A PHI OFF], T - sawtooth wave signal.
'r', [FROM TO], T - ramp signal which starts at FROM and goes to TO
over the duration T
NB! Supply an empty matrix [] for any set of parameters
to use default values.
'Ts', T - Sampling interval T