Skip to Main Content Skip to Search
Login
File Exchange
MATLAB Newsgroup
Link Exchange
  Blogs  
 Contest 
MathWorks.com

Thread Subject: Upsample/FIR/downsample

Subject: Upsample/FIR/downsample

From: "Ron N.

Date: 9 Aug, 2007 06:14:37

Message: 1 of 1

On Aug 8, 2:28 pm, robert bristow-johnson <r...@audioimagination.com>
wrote:
> On Aug 8, 4:21 pm, R.Lyons@_BOGUS_ieee.org (Rick Lyons) wrote:
>
>
>
> > On Wed, 08 Aug 2007 17:31:32 -0000, robert bristow-johnson
>
> > <r...@audioimagination.com> wrote:
>
> > >it depends on if you are ultimately upsampling (M<L) or downsampling
> > >(M>L). that's why i said
>
> > > h = fir1(N-1, min(1/M,1/L), kaiser(N,7.8562));
>
> ...
> > Regarding the fir1's freq argument, when
> > I looked at mpowell's original decimation
> > code, and the interpolation code example in MATLAB's
> > hardcopy User's Manual, I originally thought
> > mpowell made an error in his
>
> > h = fir1(N,1/M,kaiser(N+1,7.8562))
>
> > where M = 160.
>
> > It took me a while to figure it out (and it
> > surprised me a little), with MATLAB's formating
> > the fir1's freq argument should always be 1/160
> > REGARDLESS of whether your interpolating or
> > decimating!!
>
> i don't think i agree, Rick. if you're UPsampling (switch the values
> for M and L around, M=147 and L=160) then you want the cutoff
> frequency to be Nyquist/L, no?
>
> e.g. converting a sound file from CD sampling rate (44.1 kHz) to DAT
> or DAW or "studio" sampling rate (48 kHz).

Wouldn't all the reconstruction filters on the
way between two sample rates have the same cutoff;
e.g. min(f1/2, f2/2) ?
In the upsampling case one wants to make sure that
any new samples don't introduce any new image
spectral content. And in the downsampling case,
one wants to low pass filter first so that there
will be no content at or above Fs/2 of the
destination sample rate.

I prefer to think of resampling as reconstruction,
with all the polyphase and up/down intermediate rate
stuff as just (major) implementation optimizations.


IMHO. YMMV.
--
rhn A.T nicholson d.0.t C-o-M

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

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.

rssFeed for this Thread

envelope graphic E-mail this page to a colleague

Public Submission Policy
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Disclaimer prior to use.
Related Topics