hi, try both: 1. initialize the memory for fout before the for loop. eg: fout(1:1024,1:end_frame) = 0 or null ; 2. instead of calling ifft so many times, write ur self, a specialized ifft for ur length. go to ifft.m and copy only some lines into ur program.... regards, ravi ygamez <> wrote: Here is the code snipet i need help with... for i = 1:end_frame for j = 1:1024 fout(i,j) = ifft(Z(i,j)); end end As you can see, if the end_frame is large, the for loop would take so long. What alternatives can I do? I've tried fout = ifft(Z); but it doesn't seem to give out the right answer. I've also tried for i = 1:end_frame fout(i,:) = ifft(Z(i,:)); end but again it gives a different answer. Which one gives the right answer anyway? And could you help me out becuase this part takes very long in my program. By the way, the dimension of Z is Z(1:end_frame,1:1024) _____________________________________ Note: If you do a simple "reply" with your email client, only the author of this message will receive your answer. You need to do a "reply all" if you want your answer to be distributed to the entire group. _____________________________________ About this discussion group: To Join: To Post: To Leave: Archives: http://www.yahoogroups.com/group/matlab More DSP-Related Groups: http://www.dsprelated.com/groups.php3 --------------------------------- Yahoo! Groups Links To Yahoo! India Mobile: Ringtones, Wallpapers, Picture Messages and more.Download now. |