From: sakly on
saklywissem(a)live.fr thank you :)
From: David Young on
"sakly " <saklywissem(a)live.fr> wrote in message <hofg1j$bi5$1(a)fred.mathworks.com>...
> "David Young" <d.s.young.notthisbit(a)sussex.ac.uk> wrote in message <hofece$g2e$1(a)fred.mathworks.com>...
> > "sakly " <saklywissem(a)live.fr> wrote in message <hofbih$307$1(a)fred.mathworks.com>...

> the test is perfect but when I apply your solution on my signal does not work
>
> sf =pi/(2*temp_t(length(temp_t)));
> I =cos(sf.*c_t);
> Q = sin(sf.*c_t);
>
> x=(Q./I);
> z=(atan(x))./sf;
> d = diff(z);
> yr = z + [0 pi*(cumsum((d < -pi/2) - (d > pi/2)))];

The problem is the division by sf. You have to remove the jumps before you do the division.
From: sakly on
thank you :))))))