signyquist

Nyquist frequency signal generation (-1,1,-1,1,etc.).

Namespace: dsp

Prototype

Vecf signyquist(int n)

Parameters

nNumber of points to generate.

Description

Build a sinusoïd sampled at frequency \(f_e/2\), that an alternating sequence -1,1,-1,1,etc.

Example


  soit x = signyquist(20);
  Figure f;
  soit c = f.plot(x, "a-");

See also

sigtri(), sigsin(), sigcos(), sigexp(), sigchirp()