ok i looked at your code and i guess you are on the right track. I scanned you the image out of the book when I had to learn all that stuf fin detail and I believe this to be very helful for your task. Try to follow what you see.
bt as yuk99 mentioned you can do the flip by:
x(1:8) = x(8:-1:1);
I added the checking code - so that you can compare your result with what you want to get out of your dft
Main Topics
Browse All Topics





by: yuk99Posted on 2009-05-10 at 16:33:10ID: 24350494
Can you attach any doc describing the algorithm you are implementing? Then I can check it. Also if possible please tell what result do you expect.
Your code is very unvectorized, not Matlab style. For example, to show 1st 8 values of x just use x(1:8).
To flip values you can say x(1:8)=x(8:1);
I would also recommend to add zones: Signal Processing and Math & Science. If you cannot do it yourself ask EE for help.