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
First, your asdoc.exe should be in your system path Open command window, cd to your project folder. In this folder, you should find src folder Run command asdoc -source-path .\src -doc-sources . Then a folder called “asdoc-output” will be
What is the limit of this infinite exponential? Solution 1: $$x=\sqrt{2}^x$$ This leads to x=2 or 4 Solution 2: $$x=^x$$ This leads to x not equal to 2 or 4 Solution 3: MatLab simulation of series $$\sqrt{2}, \sqrt{2}^\sqrt{2}, [\s
I find saveppt2 is very useful in data exploration. I often have to view a lot of plots/figures for individual subjects during quality checking or data exploration. It would be ideal to have a script to automatically save the plots into PowerPoint an
Adobe AIR 2 beta is out last night (Nov 16, 2009). It includes a number of highly expected features including launching native applications. It also improves CPU/memory usages. Some sample applications include: http://labs.adobe.com/technologies/air2
When you submit a manuscript, many journals ask you to send your figures in TIFF format with some requirements such as 300dpi, flattened, LZW compressed, etc. How to do that? My figures are usually finalized in MS PowerPoint. I don’t use PowerP
updated: 2010/01/05, add plot of original data Assume our data contains two features and they are highly correlated (say, r>0.9). The 1st feature does slightly better than the 2nd one in classifying the data. The question is, is the weight of the
My desktop computer in the lab is a Mac Pro. I also installed Windows XP on this computer through VMWare. Windows XP (and 7, now windows 10 64bit) major working environment, including manuscript writing, data analysis, preparing presentation etc MS W
I usually write MatLab scripts to parse the behavior data collected in a fMRI or NIRS experiment. It’s powerful and flexible. But as I have to do an Excel version recently, I found Excel has a great advantage — it’s easy to share wi
If your AIR application needs to do something (e.g. saving some settings) before quitting, you may listen to the Event.EXITING event, and then preventDefault(), then do something, and finally call NativeApplication.nativeApplication.exit() to quit. B