Sign in

Not a member? | Forgot your Password?

Search matlab

Search tips

Find us on Facebook!





Subscribe to matlab

Search tips

Free PDF Downloads

A Quadrature Signals Tutorial: Complex, But Not Complicated

Understanding the 'Phasing Method' of Single Sideband Demodulation

Complex Digital Signal Processing in Telecommunications

Introduction to Sound Processing

C++ Tutorial

Introduction of C Programming for DSP Applications

Fixed-Point Arithmetic: An Introduction

Cascaded Integrator-Comb (CIC) Filter Introduction

Discussion Groups

IIR Filter Design Software

See Also

Embedded SystemsFPGA

Discussion Groups | Matlab DSP | Non Uniform data interpolation


Technical discussion about Matlab and issues related to Digital Signal Processing.

  

Post a new Thread



Is this thread worth a thumbs up?

0

Non Uniform data interpolation - Anshu - Nov 3 19:25:00 2005

Hi

I have a data vector x with uniform data points say [1 2 3 4 5]
and another data vector x_random with random data points say [.9 2.3 3.6 3.8 5.9]
The signal vector corresponding to random data is known and it consists of complex numbers like [-1 +i 2+2i 4-2i 1+3i -2+i]. The problem is that i want to interpolate nonuniform data points to get complex data corresponding to uniform point!!!

Can anybody help me? Do you know any matlab function for complex data interpolation?

Thanks
Anshu






Re: Non Uniform data interpolation - Nandan Das - Nov 4 12:14:00 2005

I guess it depends on your application and depends on what you want to do. I
can think of the following cases:

a) your metric is the magnitude of the complex numbers and you want to
interpolate the magnitude (answer not unique)
b) your metric is the phase of the complex numbers and you then you want to
interpolate the phase (answer not unique)
c) you want to interpolate the real and imaginary parts of the complex
numbers independently (answer is unique)

For each of these, you are really interpolating a real number and can be
done in the standard method.

Nandan

On 11/3/05, Anshu <anshu_27@ansh...> wrote:
>
> Hi
>
> I have a data vector x with uniform data points say [1 2 3 4 5]
> and another data vector x_random with random data points say [.9 2.3 3.6
> 3.8 5.9]
> The signal vector corresponding to random data is known and it consists of
> complex numbers like [-1 +i 2+2i 4-2i 1+3i -2+i]. The problem is that i want
> to interpolate nonuniform data points to get complex data corresponding to
> uniform point!!!
>
> Can anybody help me? Do you know any matlab function for complex data
> interpolation?
>
> Thanks
> Anshu






RE: Non Uniform data interpolation - Jeff Winter - Nov 7 7:24:00 2005

Hi,

Copied directly from the interp1 help....

Interpolating Complex Data

For Real x and Complex Y. For interp1(x,Y,...) where x is real and Y is
complex, you can use any interp1 method except for 'pchip'. The
shape-preserving aspect of the 'pchip' algorithm involves the signs of the
slopes between the data points. Because there is no notion of sign with
complex data, it is impossible to talk about whether a function is
increasing or decreasing. Consequently, the 'pchip' algorithm does not
generalize to complex data.

The 'spline' method is often a good choice because piecewise cubic splines
are derived purely from smoothness conditions. The second derivative of the
interpolant must be continuous across the interpolating points. This does
not involve any notion of sign or shape and so generalizes to complex data.

For Complex x. For interp1(x,Y,...) where x is complex and Y is either real
or complex, use the two-dimensional interpolation routine interp2(REAL(x),
IMAG(x),Y,...) instead.

See Also

interpft, interp2, interp3, interpn, pchip, spline Regards,

Jeff
************************************
Jeff Winter
Snr Signal Processing Engineer
Aeroflex
www.aeroflex.com Check out our PXI RF digitizer:
www.aeroflex.com/pxi -----Original Message-----
From: matlab@matl... [mailto:matlab@matl...]On Behalf Of
Anshu
Sent: 03 November 2005 23:26
To: matlab@matl...
Subject: [matlab] Non Uniform data interpolation Hi

I have a data vector x with uniform data points say [1 2 3 4 5]
and another data vector x_random with random data points say [.9 2.3 3.6 3.8
5.9]
The signal vector corresponding to random data is known and it consists of
complex numbers like [-1 +i 2+2i 4-2i 1+3i -2+i]. The problem is that i
want to interpolate nonuniform data points to get complex data corresponding
to uniform point!!!

Can anybody help me? Do you know any matlab function for complex data
interpolation?

Thanks
Anshu






Re: Non Uniform data interpolation - Juan de Dios Santander Vela - Nov 7 13:26:00 2005

El 04/11/2005, a las 0:25, Anshu escribió:

> Can anybody help me? Do you know any matlab function for complex
> data interpolation?

Complex numbers are an unordered bunch, so it's impossible to say
which complex numbers lie within any other two...

So, you need a metric on those complex data; it can be, real part,
imaginary part, its modulus, its argument (phase)... Depending on
what you need, you'll be able to figure out what to do.

--
Juan de Dios Santander Vela
Diplomado en CC. Físicas, Ingeniero en Electrónica
Doctorando en Tecnologías Multimedia
Becario Predoctoral del Instituto de Astrofísica de Andalucía

Sólo hay 10 clases de personas en el mundo: las que entienden la
notación binaria, y los que no.