Kolmogorov-Smirnov test

KS test is like T test; but it tests not only the mean but also the distribution. The null hypothesis for this test is...
Xu Cui
27 sec read

fMRI: how to do ROI analysis

ROI stands for region of interest. The region is predefined usually from glm contrast. For example, you find visual cortex is activated when a...
Xu Cui
42 sec read

Trigger scanner script: E-Prime and MatLab

E-Prime This piece of code is used in Lucas Center scanner #2 at Stanford University. SRBOX.Lamps "4" Sleep(100) SRBOX.Lamps "" Set SumACC = New...
Xu Cui
1 min read

xjView, a viewing program for SPM2, SPM5, SPM8 and…

xjView’s official webpage moves to xjView is a MatLab program Jian and I wrote a few years ago to display SPM T-test images...
Xu Cui
33 sec read

MatLab: figure window always on top (front)

When there is keyboard input, the command window of MatLab will gain focus and all its figure windows will be hiden back. How to...
Xu Cui
9 sec read

typecast in MatLab to convert data type

We need to get real-time neural signal from Hitachi’s ETG4000. Hitachi provides a MatLab script “RealtimeOT” to get data from a parallel port and...
Xu Cui
26 sec read