Re: matlab and NR (C) FFT routines

jg.campbell.ng_at_gmail.com
Date: 03/29/05


Date: 29 Mar 2005 05:18:09 -0800

jc@localhost~/java/classes/dl/s>$ cat four1t.c

/* #includes and defininion of four1 excluded for brevity*/

int main(void){
  float data[8] = {1,2,2,3,3,4,4,5};
  int i;

  four1(data-1, 4, -1);

  for(i=0; i< 8; i++){
    printf("%8.3f ", data[i]);
  }

  return 0;
}

jc@localhost~/java/classes/dl/s>$ gcc -ansi -pedantic -Wall
-Wstrict-prototypes -o exe -lm four1t.c

jc@localhost~/java/classes/dl/s>$ ./exe
10.000 14.000 -4.000 0.000 -2.000 -2.000 0.000 -4.000

Is that what you wanted?

Best regards,

Jon C.



Relevant Pages

  • Re: Working with incoming calls
    ... "Grant Schenck" wrote: ... they can be with regards to operations and call states. ... dwNeededSize 56 unsigned long int ... As you can see both dwCallFeatures and dwCallFeatures2 are 0. ...
    (microsoft.public.win32.programmer.tapi)
  • Re: Malloc code
    ... Best regards ... I will have to just be carefull to not allocate more that 1.5 KB at any ... also said that for your compiler, int is 8 bits. ... declaration of malloc from your compiler's malloc.h. ...
    (microsoft.public.vc.language)
  • Re: help needed with filnames as command line arguments
    ... Tested on Bloodshed gcc and Cygwins gcc also in case you're ... 003 int printargstuff(int aa, char *bb); ... Regards ...
    (comp.lang.c)
  • Re: unresolved external symbol
    ... Regards, ... > using namespace K1; ... > int APIENTRY _tWinMain(HINSTANCE hInstance, ... >>> a member of the my namespace. ...
    (microsoft.public.dotnet.languages.vc)
  • Re: Convert int for string
    ... Best regards, ... Rodrigo Faria ... Perl isn't a strong type language like C,so you ... would print 246 correctly,perl treat $x as an int ...
    (perl.beginners)