Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Filter banks and Decimators

Subject: Filter banks and Decimators

From: Silvia

Date: 30 Sep, 2013 14:40:06

Message: 1 of 1

Hi,
The following is part of a code that is taken from the "Kong-Aik Lee" book.
The purpose of this code (Matlab code) is to generate N filter banks, and then followed by
subsequent decimator, using upfirdn.
[H,F] = make_bank(hopt,N); % Generate filter banks
H = sqrt(N)*H'; F = sqrt(N)*F'; % Scaling
xn = sin(2*pi*0.01*(0:1000)); % Input sinusoidal signal
upfirdn(s,H,1,D);

as explained in figure below:
    ____ ____
---|_H1_|--|_D1_|---

    ____ ____
---|_H2_|--|_D2_|---
       | |
    _ |___ _|___
---|_H(N)_|--|_D(N)_|---

My questions are:
1. How can I get each filters individually, for example what I should do to
take just H2 individually ? what command I have to write to get it separately from the filter bank?
2. The same question with the decimator.

Thanks in advance

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us