Handy programs to visualize NIRS data (1): plotTraces

26 sec read

You often need to plot the time series of NIRS signal from all channels with event indicators (See the example below). plotTraces can do that easily.


In the above example, time series of all 24 channels are plotted. The number on the y-axis indicates the channel number, and the vertical lines indicate events. Each color represents one event.

Here is an example of using this function:

figure;plotTraces(hbo, 1:24, mark);

where hbo is Nxm matrix (N: # of time points; m: # of channels). mark is a nx2 matrix where the 1st column is event type (1, 2, 3, …) and the 2nd column is the timing of each event.

And here is the source code of the function.

Don't want to miss new papers in your field? Check out Stork we developed:

After fNIRS experiment …

Xu Cui
13 sec read

nirs2img, create an image file from NIRS data

I was asked where to get nirs2img script. Here it is. The download link is at the bottom of this article. nirs2img is to...
Xu Cui
51 sec read

One Reply to “Handy programs to visualize NIRS data (1): plotTraces”

Leave a Reply

Your email address will not be published. Required fields are marked *