matlab

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 Summation You also need to declare SumACC in user script Dim SumACC = As Summation Ma
Xu Cui
1 min read

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

xjView’s official webpage moves to https://www.alivelearn.net/xjview/ xjView is a MatLab program Jian and I wrote a few years ago to display SPM T-test images more easily. Main features include p-value slider: change p-value and display the sup
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 make a figure window always on top? I use setWindowOnTop.m downloaded from http://webscripts.softpedia.com/script/Develop
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 convert the binary data to float. Here is what they did: fp=fopen('temp',�
Xu Cui
26 sec read