help-octave
[Top][All Lists]
Advanced

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

Re: Filtering Matrix


From: Juan Pablo Carbajal
Subject: Re: Filtering Matrix
Date: Mon, 25 Mar 2013 14:51:54 +0100

On Sun, Mar 24, 2013 at 4:17 PM, christorno
<address@hidden> wrote:
> Hi!
> Im trying to analyse a wavfile:s matrix with the wavread command. The Wav
> file is a recording of a magnet passing through several spoils and by
> induction creating a electric spike. The magnet passes through several of
> them and I want to analyse the time between these fluxuations.
> The matrix gives me values say between -5 to 5 and I want to find where it's
> 0, so I can get the time between the spoils!
>
> Does anyone know how to do this?
> Thanks!
>
>
>
> --
> View this message in context: 
> http://octave.1599824.n4.nabble.com/Filtering-Matrix-tp4651164.html
> Sent from the Octave - General mailing list archive at Nabble.com.
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://mailman.cae.wisc.edu/listinfo/help-octave

if your data is in matrix A you can try
idx = find(A==0)

Of course, that wont work if the data is noisi, so maybe you prefer to
define a threshold
thr = 0.05*max(abs(A))
idx = find (abs(A)<=thr)


reply via email to

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