Can you find any pattern in the two signals, green and blue? The blue signal is the brain wave (measured by NIRS) of a person when he is pressing some buttons (the timing of button pressing is shown i
Wavelet transform coherence (WTC) is a method for analyzing the coherence and phase lag between two time series as a function of both time and frequency (Chang and Glover 2010). Here I played with it
SVM is mostly commonly used for binary classifications. But one branch of SVM, SVM regression or SVR, is able to fit a continuous function to data. This is particularly useful when the predicted varia
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 data. Then theimage file can be viewed by a
Tools: SPM, cor2mni Assume the image is “a.img”, do v = spm_vol('a.img'); v.mat If v.mat is a diagonal matrix, you can simply read the number and they are the voxel size in mm. If not, a trick is to calculate the distance between adjacent
In your AIR application, if you overwrite the application menu, you might find that the keyboard shortcuts (e.g. Cmd-C, V) doesn’t work under Mac. It seems the “Edit” menu in the default application is essential to these functions.
This is an example of brain activation plotted on surface. In many circumstances surface view is much more straightforward than a slice view. Here is how I created such a plot using MatLab and SPM. Environment and Tools: Windows XP MatLab (v7.6) SPM
We use TCP/UDP/IP Toolbox 2.0.5 to read and write data from/to a TCPIP port. It’s fast and reliable. The version we use is 2.0.5. Below is a matlab sample script showing how to connect to another computer (called ETG-4000) with TCPIP : %Connect
Noise removal methods in NIRS can be divided into 4 categories: reducing noise based on its temporal characteristics: The instrument noise is usually in the high frequency band and thus can be removed by band pass filtering. Band pass filtering can a
As I have quite some emails (>13000) in gmail, searching more efficiently becomes a necessity. Fortunately gmail offers some advanced search syntax. http://mail.google.com/support/bin/answer.py?hl=en&answer=7190 Search emails with attachment f
Assume you have a vector (x,y,z) and you want to rotate it to, say x-axis, you can multiply the rotation matrix to the vector. First, make the vector a column vector and append 1 to the end. It becomes a 4×1 matrix: v = x y z 1 Then, convert the