matlab

Communications between two MatLabs (1) over file

Ref to: Communications between two MatLabs (2): over socket It’s common that two MatLab programs needs to communicate. For instance, one program is collecting the brain imaging data but not display them, and the other program is to display the
Xu Cui
1 min read

A mistake in my False discovery rate (FDR) correction…

I have posted an FDR script at https://www.alivelearn.net/?p=1840. I noticed that there is a small bug. In rare cases, this bug will cause the most significant voxel to be classified as ‘non-significant’ while other voxels are ‘sign
Xu Cui
37 sec read

MatLab tip, save data in compressed mode

I have a mat file which is 100+M in size. It would be fine normally but since I was trying to upload it to github, it was rejected due to its big size. Fortunately there is a way to reduce the size: save it again in the compressed mode. After I load
Xu Cui
31 sec read

Some tips to use wavelet toolbox

Wavelet toolbox is a useful tool to study hyperscanning data. Many recent publications on NIRS hyperscanning use wavelet coherence to quantify the relationship between two interacting brains (e.g. Baker et al 2016, Nozawa et al 2016). You can see mor
Xu Cui
55 sec read

Projection of a NIRS channel on a brain surface

When analyzing the data in our concurrent NIRS-fMRI study, we are particularly interested in how the NIRS signals were correlated to the fMRI signal. To answer the question we need to create an ROI (region of interest) in brain which is directly unde
Xu Cui
35 sec read

T value of a single subject

I usually report a group-level T-test image in the final publications or presentations. But in the early stage of a project when only one or a few subjects have been scanned, I often need to report an activation map for an individual subject after ge
Xu Cui
1 min read

Finger tapping task MatLab script

Finger tapping is probably the most used task in brain imaging studies (fMRI and NIRS). The task is simple and elicits robust brain signal in the motor cortex. We always use it to test new devices or develop a new method. If you want to control your
Xu Cui
22 sec read

xjView 8.13 released. Allow to change the minimum of…

xjView 8.14 just released. Download link: https://www.alivelearn.net/xjview xjView 8.13 is released with the following new features: Allow to change the minimum value of the color bar range. This will enable you to do Create a symmetric color bar fro
Xu Cui
20 sec read

NIRS hyperscanning data analysis (4) coherence analysis

NIRS hyperscanning data analysis (1) NIRS hyperscanning data analysis (2) NIRS hyperscanning data analysis (3) NIRS hyperscanning data analysis (4) How do we analyze hyperscanning data to find out the relationship between two brains? Obviously correl
Xu Cui
1 min read