pne_detected_event

pne_detected_event(event_log, name, zero)

pne_detected_event() - Returns the detected event of a particular name.

EV = PNE_DETECTED_EVENT(EVENT_LOG, NAME)
EV = PNE_DETECTED_EVENT(EVENT_LOG, NAME, ZERO)
[EV, I] = PNE_DETECTED_EVENT(...)

Searches through the log of detected events, returning the event with
the specified name, if one exists, and optionally only if it is refers
to a detected event zero (not an event interval).

Inputs:
    EVENT_LOG : struct array of detected events
    NAME : name of event of interest
    ZERO : (optional, default = 0)
        0 - return the event if a zero or an interval are detected for the
            corresponding event function
        1 - return the event only if a zero is deteced for the
            corresponding event function

Outputs:
    EV : entry of the EVENT_LOG corresponding to the detected event with
         the specified NAME, or empty if NAME not in the EVENT_LOG of
         detected events
    I : index of EV in EVENT_LOG

See pne_detect_events() for details on the fields in the event_log and ev structs.