tDCS with Matlab scripts


tDCS with Matlab scripts

tDCS with Matlab scripts

NeuroMod tXES Waveforms: Custom Matlab scripts are
available to create pulsed, windowed, multifrequency,
evoked response based, and other waveforms. The user
can also program the waveforms that conform to the tXES
.wf format. The format of the waveform files is a four
column matrix in CSV format. The first column gives the
times when the amplitude of the current should be
updated. The second column gives the channel numbers.
The third column gives the values in mA for the
stimulation waveform. The fourth column contains a
vector of zeros. The time and amplitude vectors much be
repeated for each channel. Please consult with the experts
at Brain Visions or Santa Fe Neurosciences before
attempting to create your own waveforms.
NeuroModWaveformPlotter.m: This Matlab function
plots the contents of any waveform file.
Example: NeuroModWaveformPlotter(‘User/myData/
myWaveforms’,’myWaveform’)
Format: function [] = NeuroModWaveformPlotter
(saveDir,waveform2plot)
• Inputs:
• saveDir: directory where waveform files will be
saved ('text')
• waveform2plot: the waveform file to plot without
the .wf extension ('text')