.. highlightlang:: us .. index:: upfirdn .. _upfirdn: upfirdn ======= .. us.tag upfirdn NOTREADYGERMAN fft New5503 :ref:`upfirdn` berechnet aus einen Signal ein Signal mit einer neuen Abtastfrequenz (Upsampling, FIR-Filteranwendung und Downsampling). .. function:: y = upfirdn(x, h, p, q); .. us.return **Returnwert** *y* ist das neu abgetastete Signal. .. us.params **Parameter** .. uparam:: x *x* ist das Eingangssignal. .. uparam:: h *h* ist ein Vektor mit den FIR Filter Elementen. .. uparam:: p *p* ist der Upsampling-Faktor. .. uparam:: q *q* ist der Downsampling-Faktor. .. us.comment **Kommentar** Die Länge des Signals *y* wird wie folgt bestimmt: ``ceil(((len(x)-1)*p+len(h))/q);`` * Upsampling (Einfügen von 0-Werten). * FIR-Filterung (finite-impulse response filter). * Downsampling (Entfernen von Elementen). Lizenz: :ref:`license_upfirdn`. .. us.example **Beispiel** :: y = upfirdn([0:9], [0.5,1,0.5], 2, 3) // linear interpolation, rate 2/3 y -> [0.0 , 1.0 , 2.5, 4.0 , 5.5, 7.0 , 8.5] .. us.history **History** .. list-table:: :header-rows: 1 * - Version - Beschreibung * - R2013.3 - Neu. .. seealso:: :ref:`overview-mathematic` :sub:`id-1317927`