Documentation for nuinit (SPASS).

Initialization of a non uniform signal


Description

The function nuinit initializes a non uniform signal given its amplitudes, delays and initial time.

Usage

nu = nuinit(ampl,delay)
nu = nuinit(ampl,delay,t0)

Arguments

ampl Amplitudes. Row or column vector.
delay Delays. Row or column vector.
t0 Initial time (of the first delay). Scalar. Optional.

Values

nu Non Uniform signal.

See Also

Example

% Creation of a non uniform signal

  f = 1;           % signal frequency
  t = 10/f;        % signal duration
  t0 = 1.;         % initial time
  nbsamples = 10;  % number of samples
  times = t0+t*random('unif',0,1,1,nbsamples);
  times=sort(times); % time samples
  delay=time2delay(times,t0); % delay samples
  a = 0.45;        % signal amplitude

  ampl = a*sin(2*pi*f*times)+a*sin(4*2*pi*f*times)+0.9;   % amplitudes

  nu = nuinit(ampl,delay,t0);