Watch this Author's files
it doesn't work.
Change line 9 in ma.m to t=fpeak(A,B,30,[0,90,100,inf]);
and you will see that it picks peaks and valleys, both.
can the p-value, etc be passed onto variables?
Contact us