Home > brain, matlab, nirs > Handy programs to visualize NIRS data (1): plotTraces

Handy programs to visualize NIRS data (1): plotTraces

April 20th, 2011

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.

Author: Xu Cui Categories: brain, matlab, nirs Tags:
Try Stork, a research tool we developed

Stork is a publication alert app developed by us at Stanford. As a researcher we often forget to follow up important publications - and it's practically impossible to search many keywords or researchers' names everyday. Stork can help us to search everyday and notifies us when there are new publications/grants. How Stork helped me?

About the author:

Xu Cui is a human brain research scientist in Stanford University. He lives in the Bay Area in the United States. He is also the founder of Stork (smart publication alert app), PaperBox and BizGenius.


He was born in He'nan province, China. He received education in Beijing University(BS), University of Tennessee (Knoxville) (MS), Baylor College of Medicine (PhD) and Stanford University (PostDoc). Read more ...
  1. Xin Zhang
    June 7th, 2011 at 03:25 | #1

    I like it. It is very meaningful.