Skip to content

saveNEVSubSpikes

  saveNEVSubSpikes

  Opens saves a new NEV file that only contains chanenls in channelsToRead.

  Use saveNEVSubSpikes(channelsToRead)

    channelsToRead: The channel data to be saved into a new NEV.
                    DEFAULT: This input is required.

    fileFullPath:   The full path to the NEV file that is going to be
                    used for splitting.
                    DEFAULT: The user will be prompted to choose a suffix.

    addedSuffix:    The suffix added to the end of splitted file.
                    DEFAULT: 'ss' is the added suffix.

    Example 1:
    channelsToRead(4, 'c:\datafolder\datafile.nev', 'tet');

    In the example above, the file c:\datafolder\datafile.nev will be used.
    The selected NEV file will be saved into a new NEV file that only
    contains data from channel 4. The new file will have the added suffix
    'tet', so the new filename will be c:\datafolder\datafile-ssXXX.nev.

    Example 2:
    channelsToRead([5,8,12];

    In the example above, the user will be prompted to select a NEV file.
    The selected NEV file will be saved into a new NEV file that only
    contains data from channels 5, 8, and 12.

    Kian Torab
    ktorab@blackrockmicro.com
    Blackrock Microsystems
    Version 1.2.2.0

 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  Version History

  1.0.0.0: Initial release.

  1.1.0.0:
    - Bug fix with saving file names.
    - Added ability to pass the file name to the function as an argument.
    - Added ability to define the suffix to the split files (addedExtension).

  1.2.0.0:
    - Fixed a bug related to the # of input arguments and compatibility
      with other functions.

  1.2.1.0:
    - Updated help.

  1.2.2.0:
    - Fixed a bug where the data was not being saved correctly on Windows
      machines.
    - Fixed a bug where tetrodes higher than 10 were overwriting tetrodes 1
      through 10 over and over again.

 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%