Qu

cheb2ord

Builtin index · Signal processing

cheb2ord(wp, ws, rp, rs, fs)

Input: wp, ws, rp, rs, fs · Output: no output

What it is

Same arguments and record as buttord, for cheby2(r.order, rs, r.kind, r.wn, fs). Same order formula as cheb1ord; wn is the stopband edge cheby2 expects, placed so the passband edge loses exactly rp dB.

Overloads

One call shape — this function is not overloaded.

CodeInputOutputDescription
cheb2ord(wp, ws, rp, rs, fs)
wp —not documented yet
ws —not documented yet
rp —wn is the stopband edge cheby2 expects, placed so the passband edge loses exactly rp dB.
rs —Same arguments and record as buttord, for cheby2(r.order, rs, r.kind, r.wn, fs).
fs —Same arguments and record as buttord, for cheby2(r.order, rs, r.kind, r.wn, fs).
not documented yet—

Examples

No documentation example calls this form yet. The Signal processing chapter is where one belongs.

How it works

buttord(wp, ws, rp, rs, fs) / cheb1ord / cheb2ord / ellipord -- the lowest order of that family meeting a passband/stopband specification, and the frequency to design it with: a record {order, wn, kind} for butter(r.order, r.kind, r.wn, fs) and its siblings. The band shape is read from the edges (one each: low/high by which is lower; two each: band/stop by which pair is inside).

From the note above this builtin in the interpreter, where the reasoning was written down as it was built.