On Mon, Oct 21, 2013 at 10:12 AM, Prasanth N P <address@hidden> wrote:
Ys, now I got what is top posting. Is this is the right method?
I have a set of samples in an array and want to do the fft function and want to collect back to an array. This is my need. How can I implement this? I am tried to as given below.
fp = fopen("buffer","r");
if (fp == NULL)
return 0;
for (ucI=0;ucI< 1024;ucI++)
fscanf(fp,"%d\n",&InData[ucI]);
octave_value_list input;
for (int i = 0; i < 1024; i++)
{
input (i) = InData[i];
}
octave_value_list output = feval ("fft", input, 1024);
Is this is the right method? How can I collect the output to an array?