help-octave
[Top][All Lists]
Advanced

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

find frequencies


From: Paolo Ariano
Subject: find frequencies
Date: 09 Dec 2002 12:41:18 +0100

hi *,
Studing Kangaroo model, i'm searching for a start-point to solve this
(probably stupid) problem:

to simplify i define a vector (a) as follow:

octave> a=[1,2,3,0,5,6,0,0,9,0,0,0,13,14,0]

i'd like to have a new vector (b) with the frequencies of a subsequent
particular value, in this case "0" so the result is:

a=[1,2,3,0,5,6,0,0,9,0,0,0,13,14,0]
         ^     ^ ^   ^ ^ ^       ^    
         1       2       3       1

b=[1,2,3,1]

do you have any idea ?

thanks 
paolo
-- 
Paolo Ariano                                  
Neuroscience PhD Student                      
DBAU & INFM Turin (Italy)                     

La liberta' in coppia raddoppia -- Tiziana S.  



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

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