If you don't live it, it won't come out of your horn. ~Charlie Parker
pks = find( diff( sign( diff( x ) ) ) < 0 ) + 1
trs = find( diff( sign( diff( x ) ) ) > 0 ) + 1
Is this Numpy or MATLAB?
Is this Numpy or MATLAB?
ReplyDelete