This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function rename_brainvision_files(varargin) | |
% RENAME_BRAINVISION_FILES renames a BrainVision EEG dataset, which consists of a vhdr header | |
% file, vmrk marker file and a data file that usually has the extension dat, eeg or seg. | |
% | |
% Use as | |
% rename_brainvision_files(oldname, newname, 'rmf', 'on') | |
% where both the old and the new filename should be strings corresponding to the | |
% header file, i.e. including the vhdr extension. | |
% 'rmf' option indicates to remove old files and can be turned 'on' of 'off' (default) |