Main Content

deleteSignals

Delete signals from EDF or EDF+ file

Since R2021a

    Description

    edfw = deleteSignals(edfw,signallabels) deletes the signals specified in signallabels from the European Data Format (EDF) or EDF+ file.

    example

    edfw = deleteSignals(edfw) deletes all the signals from the EDF or EDF+ file.

    Examples

    collapse all

    Load edfw.mat into the workspace. The edfwrite object contains electromyography (EMG) data [1] from eight different arm muscles. The data is available at www.sce.carleton.ca/faculty/chan/index.php?page=matlab. Display the number of signals and the signal labels.

    load edfw
    edfw.NumSignals
    ans = 
    8
    
    edfw.SignalLabels
    ans = 8x1 string
        "F1"
        "F2"
        "F3"
        "F4"
        "F5"
        "F6"
        "F7"
        "B1"
    
    

    Delete signal B1 from edfw. Display the number of signals and the signal labels.

    edfw = deleteSignals(edfw,"B1");
    edfw.NumSignals
    ans = 
    7
    
    edfw.SignalLabels
    ans = 7x1 string
        "F1"
        "F2"
        "F3"
        "F4"
        "F5"
        "F6"
        "F7"
    
    

    Input Arguments

    collapse all

    EDF or EDF+ file, specified as an edfwrite object.

    Signal names, specified as a string vector.

    Data Types: string

    Output Arguments

    collapse all

    EDF or EDF+ file, returned as an edfwrite object.

    Note

    When a signal is deleted, the recording becomes discontinuous and the Reserved property of the EDF or EDF+ file is converted to EDF+D.

    References

    [1] Chan, Adrian D.C., and Geoffrey C. Green. 2007. "Myoelectric Control Development Toolbox". Paper presented at 30th Conference of the Canadian Medical & Biological Engineering Society, Toronto, Canada, 2007.

    [2] Kemp, Bob, Alpo Värri, Agostinho C. Rosa, Kim D. Nielsen, and John Gade. “A Simple Format for Exchange of Digitized Polygraphic Recordings.” Electroencephalography and Clinical Neurophysiology 82, no. 5 (May 1992): 391–93. https://doi.org/10.1016/0013-4694(92)90009-7.

    [3] Kemp, Bob, and Jesus Olivan. "European Data Format 'plus' (EDF+), an EDF Alike Standard Format for the Exchange of Physiological Data." Clinical Neurophysiology 114, no. 9 (2003): 1755–1761. https://doi.org/10.1016/S1388-2457(03)00123-8.

    Version History

    Introduced in R2021a

    See Also

    Apps

    Objects

    Functions

    External Websites