Skip to content

combineNSxNEV

    [NSx, NEV] = combineNSxNEV(filename1, filename2)

    This function loads two NSx and NEV files and it will combine them
    together into a sinlge NSx and NEV structure in MATLAB. To merge two
    NSx and NEV files into individual files see mergeNSxNEV. The time
    difference between the two sets of recordings is removed. To determine
    the time differnce between the two data files, use
    NSx.MetaTags.DateTimeRaw or NEV.MetaTags.DateTimeRaw variables.


    filename1:  The name of the first NSx file. This input is optional. In
                its absense, a dialog will open and will prompt the user to
                select an NSx file.
                (OPTIONAL)

    filename2:  The name of the second NSx file. This input is also
                optional. In its absense, a dialog will open and will
                prompt the user to select an NSx file.
                (OPTIONAL)


    Example: 

    [NSx, NEV] = combineNSxNEV('c:\data\saveddata1.ns5', 'c:\data\saveddata2.ns5');

    The above example reads the two files (full path needed)
    c:\data\saveddata1.ns5 and c:\data\saveddata2.ns5 and their corresponding
    NEV files (saveddata1.nev and saveddata2.nev) in the same folder and
    combines them into single variables NSx and NEV into MATLAB workspace.

    Kian Torab
    ktorab@blackrockmicro.com
    Blackrock Microsystems

    Version 1.1.2.0