help-octave
[Top][All Lists]
Advanced

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

Saving output of every loop to a file


From: ksr
Subject: Saving output of every loop to a file
Date: Mon, 19 Mar 2012 00:23:53 -0700 (PDT)

hello guys,
i am trying to save output of a every looping to a file, with the following
code

start = 1;
stop = win_length;
[y, fs] = wavread("eg.wav");
    for i=1:win_length
         y = abs(fft(x(start:stop).*fft_win));
         start = stop +1;
         stop = stop + win_length;
         save('-text',dbout(i).txt, 'y');
    end

but the ouput in dbout(i), is expected to save like 
dbout(1).txt
dbout(2).txt
dbout(3).txt
.
.
.

but its not happening like that
please help me how to save this to a new file for every looping 
Thanks in advance....

--
View this message in context: 
http://octave.1599824.n4.nabble.com/Saving-output-of-every-loop-to-a-file-tp4483989p4483989.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

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