What is the period for in Matlab?
The period p is computed as the minimum length of a subsequence x(1:p) of x that repeats itself continuously every p samples. p = seqperiod( x , tol ) specifies tol as the absolute tolerance to determine when two numbers are close enough to be treated as equal.
How to use diff in Matlab?
Y = diff( X ) calculates differences between adjacent elements of X along the first array dimension whose size does not equal 1: If X is a vector of length m , then Y = diff(X) returns a vector of length m-1 . The elements of Y are the differences between adjacent elements of X .
How do you find the max peak in Matlab?
Use findpeaks with default settings to find the peaks of the signal and their locations. [pks,locs] = findpeaks(PeakSig,x); Plot the peaks using findpeaks and label them.