Poles / zeros diagram.


Prototype

void plot_plz(Figure &fig, const FRat<T> &h, bool cmap=false)

Parameters

figFigure where to plot the zeros and poles.
htransfert function
cmapIf true, draw a color map representing the magnitude of the response in the complex plane.

Description

The transfert function is factored as: \[ H(z) = \frac{\prod z - z_i}{\prod z - p_i} \]

where the \(z_i\) and \(p_i\) are called respectively the zeros et poles.

Example

  pour(auto cmap: {non, oui})
  {
    // Moyenne glissante d'ordre 10
    soit h = Vecf::ones(10) / 10;
    Figure f;
    plot_plz(f, h, cmap);

    f.enregistrer(sformat("../doxy/images/filtrage-plz{}.png", cmap ? "-cm" : ""), {1200,1000});
    f.enregistrer(sformat("./res/filtrage-analyse/plz{}.png", cmap ? "-cm" : ""), {1200,1000});
  }

With cmap=false

With cmap=true

See also

plot_filter()