Skip to content

ndi.database.fun.finddocs_elementEpochType

 FINDDOCS_ELEMENTEPOCHTYPE Searches for documents in the NDI database.

    Syntax:
        docs = FINDDOCS_ELEMENTEPOCHTYPE(sessionObj,elementID,epochID,documentType)

    Description:
        This function constructs database queries using `ndi.query` based
        on the provided session object, element ID, epoch ID, and document
        type. It then combines these queries and executes a search to 
        retrieve matching documents.

    Input Arguments:
        S (ndi.session | ndi.dataset object)
        elementID (char vector | string scalar) - The ndi.element id
        epochID (char vector | string scalar) - The ndi.element epoch_id
        documentType (char vector | string scalar) - The type of document
            to search for (e.g., 'spectrogram').

    Output Arguments:
        docs - The document(s) matching the search criteria.