matlab

采用基于频率簇(Cluster)的置换检验(Permutation)方法选取感兴趣频段

作者:北京师范大学 龙宇航,[email protected]代码来源(见本页底部):周思远 在使用wtc计算脑间神经同步后,我们需要在多个频率段、多个通道组合上对神经同步值进行统计检验,因
Xu Cui
1 min read

Calculate phase difference between two general signals (e.g. HbO…

In a recent fNIRS journal club (vedio recorded here), Dr. Tong talked about their work on the phase difference between oxy and deoxy Hb, and its relationship with participants’ age. This article is a demo of how to use Hilbert transform to calc
Xu Cui
1 min read

nirs2img, create an image file from NIRS data

Update 2021/2/27: If you find griddata3 not working, try to change griddata3 to griddata. I was asked where to get nirs2img script. Here it is. The download link is at the bottom of this article. nirs2img is to create an image file from the input dat
Xu Cui
51 sec read

mergefile.m – a MatLab script to merge CSV files

My wife asked me to write a script to merge some csv files she has. Usually this can be accomplished by a simple command in Mac or Linux: cat *.csv >all0.csv In Windows, it is: copy *.csv all0.csv But my wife needs more. She wanted the merged file
Xu Cui
35 sec read

xjview 9.6 released

In this version, we modified the templates for 3-D render view and use a high-resolution template. It also includes a few scalp view. You may pick up your favorite display for your paper (or presentation). Please go to the download page to download.
Xu Cui
31 sec read

Matlab figure disappears in multiple monitor setup

I have multiple monitors attached to my laptop. Whenever I want to create a new figure in MatLab, the main screen seems to flash once and the figure is nowhere to find. The reason is the DefaultFigurePosition property. If you run get(0,'DefaultFigure
Xu Cui
25 sec read

Hyperscanning experiment file (matlab)

Below is the experiment script (in MatLab) for our hyperscanning project (“NIRS-based hyperscanning reveals increased interpersonal coherence in superior frontal cortex during cooperation.”). For detailed information please refer to Cui,
Xu Cui
12 sec read

We contributed to MatLab (wavelet toolbox)

We use MatLab a lot! It’s the major program for brain imaging data analysis in our lab. However, I never thought we could actually contribute to MatLab’s development. In MatLab 2016, there is a toolbox called Wavelet Toolbox. If you read
Xu Cui
2 min read

Communications between two MatLabs (2): over socket

After the previous blog post Communications between two MatLabs (1) over file, Aaron Piccirilli in our lab suggested a more efficient way to communicate between two matlabs, i.e. over socket. Below is the source code provided by Aaron: udpSocket = ud
Xu Cui
1 min read