DSPRelated.com
Forums

converting variable sampling rate to fixed rate

Started by cban...@gmail.com July 17, 2008
I am working with a signal that was sampled at a variable rate and consists of an array of values and a separate array of sample times. The sample intervals are random and are not multiples of any common value.

I need to convert this signal to a single array with a known, fixed sampling rate. Does anyone have suggestions as to how I would go about this?

Thanks,
Chris
Never mind, I figured it out. Using the interp1 function with an
appropriate xi array solved my problem.

~Chris
On Wed, Jul 16, 2008 at 9:57 AM, wrote:

> I am working with a signal that was sampled at a variable rate and
> consists of an array of values and a separate array of sample times. The
> sample intervals are random and are not multiples of any common value.
>
> I need to convert this signal to a single array with a known, fixed
> sampling rate. Does anyone have suggestions as to how I would go about this?
> Thanks,
> Chris
>
>