help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Want to know how to inluce octave fft lib in my Qt program


From: c.
Subject: Re: Want to know how to inluce octave fft lib in my Qt program
Date: Tue, 22 Oct 2013 11:46:34 +0200

On 22 Oct 2013, at 11:25, Prasanth N P <address@hidden> wrote:

> 
>  octave_value_list output = feval ("fft", input, 1);
>  ColumnVector output_vector = output(0).column_vector_value ();
> 
> 
> error: octave_base_value::array_value(): wrong type argument `complex matrix'

oh, right, that's because the output of fft is in general complex, so you 
should use a 
ComplexColumnVector rather than a ColumnVector to collectthe output.

The elements of the outupt vector will be of class Complex which is just a 
typedef for std::complex.

HTH,
c.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]