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
Previous post “Games used in human brain research ” The finger tapping task mentioned in the last post is rather boring. How interesting it is to move fingers? So in this post I will talk about a more interesting task: competitive butt
Some noise is easy to detect – simply plotting the time courses of NIRS signal, you will find the noise so out of range and you will discard the data. However, I find in some instances the noise level seems to be in the normal range but the dat
The vast majority of studies on the relationship between human brain and behavior try to answer the “where” question: Where in the brain are the regions that are responsible for a particular task? For example, where is the finger movement
Quite often you need to call external or system commands inside MatLab. Sometimes that external commands requires setting up environment variables in the shell. If would be a pain to do the environment setup inside MatLab. The easiest way I know of t
genpath When you add a folder to path, you often want to add all its subfolders (and their subfolders) to path too. In this case, you can use genpath. e.g. addpath(genpath(pwd)) use ii, instead of i, in loop (suggested by Chess Stetson) You probably
This post is under updating … The information is not complete Table can be found here: https://spreadsheets.google.com/spreadsheet/ccc?key=0AmI1wIXzRozHdFQzWHNQajI5eTlOeWRFd0tCT0hwYmc&hl=en_US Artinis OctaMon The m
Let’s say you collected some brain data (time series) using NIRS while the participants were performing a task (say finger tapping), and you use the wt function in the “Cross Wavelet and Wavelet Coherence Toolbox” (link dead. Please