Programmer Guide/Command Reference/EVAL/zcross: Difference between revisions

From STX Wiki
Jump to navigationJump to search
(initial import)
 
m (1 revision: Initial import)
(No difference)

Revision as of 17:31, 18 November 2010

zcross
Usage:

zcross(x [, type=0 {0..3}, xmin=0, srate=1])

Parameters:
type
The type of result to return (see Result)
xmin
The minimum x value.
srate
The sampling rate.
Result:

Returns a scalar:

If type=0, the number of zero-crossings.

If type=1, the density of zero-crossings (number of zero-crossings / seconds).

If type=2, the frequency of zero-crossing (density / 2).

If type=3, the period length (1 / frequency = 2 / density).

Description:

Count the number of zero-crossings in the vector x. This is a subcommand of the EVAL command.

Navigation menu

Personal tools