Documentation for u2nu (SPASS).

Conversion of a uniform signal to a non uniform signal


Description

The function u2nu converts a uniform signal into a non uniform signal with the same amplitudes and times.

Usage

nu = u2nu(u)

Arguments

u Uniform signal.

Values

nu Non Uniform signal.

See Also

Example

% Creation of a uniform signal

  f = 1;           % signal frequency
  t = 10/f;        % signal duration
  fs = 1000;       % sampling frequency
  ts = 1/fs;       % sampling time
  t0 = 1.;         % initial time
  times = t0+(0:ts:t); % time samples
  a = 0.45;        % signal amplitude

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

  u = uinit(ampl,ts,t0);
  nu = u2nu(u);