Re: transition detection



In article <ef1260c.-1@xxxxxxxxxxxxxxxx>, jack <noavail@xxxxxxxx> wrote:

> Hello
>
> I was wondering if anyone knows of away in matlab to efficiently
> detect transition as is shown below. The real data included alot of
> noise hence simply taking a derrivative does not work very well.
>
> T = 0 0 1 1 1 0 0 0 2 2 0 1 1 1 1 0 0 0 0
>
> thanks in advance
> Jack
-------------------
Hello Jack,

You may wish to introduce some degree of "tolerance" in the 'diff'
function in order to deal with noise in T:

i = find(abs(diff(T))>tol);

This would pick up the locations of changes in T greater than the 'tol'
amount, with 'tol' being set in accordance with the amount of noise you
expect in T.

By the way, 'diff', as applied to numerical vectors, does not find
derivatives. It just finds the differences between successive elements.
'diff' only becomes a derivative when applied to symbolic variables in the
Symbolic Math Toolbox.

(Remove "xyzzy" and ".invalid" to send me email.)
Roger Stafford
.



Relevant Pages

  • Re: Superfunction provides iteration (was Re: Continuous iteration of another quadratic map)
    ... But doesn't the evaluation of "diff" in there use a more accurate ... derivatives of the Taylor expansion. ... If you aren't convinced that this method works after the Maple example I gave ...
    (sci.math)
  • Re: differentiating a ploynomial using diff function
    ... This way I can compare the result of Diff function with my exact calculations. ... From the product help, I understand that the quantity diff./diffis ... should not use DIFF but the way you learned to take derivatives in your ...
    (comp.soft-sys.matlab)
  • Re: Gradient
    ... After i calculate the diff with the method that u showed me, ... Roger Stafford wrote: ... Can anyone help me how to find the gradient of the function ... If you don't have the Symbolic Math Toolbox, ...
    (comp.soft-sys.matlab)
  • Re: How to compute kth derivative in a vector.
    ... simple diff won't work because of mpower error. ... Differentiation is a noise amplification process. ... High order differentiation is worse. ... has ANY noise in it at all, those fifth derivatives will ...
    (comp.soft-sys.matlab)
  • Re: How do you find derivatives in noisy data?
    ... > Does anybody know how to pull derivatives out of noisy data? ... Derivative amplifies the noise, so you should filter out the noise as much ... Oversampling should not increase noise, but keep it the same or lower the ...
    (sci.math)

Loading