Blog
Notes on experiments, code, tools, and readings · Posts 11–20 of 25
-
VISION
Corrected Vision May Still Bias the Gabor Patch Detection
As said in the title, participants with corrected vision (wearing glass or contact lens) may still have distorted vision due to whatever reason, especially in Gabor patch detection task. This question comes from my personal experience, I a…
-
NOTES
Get real-time gaze positions from the eye tracker
If I want to make sure the participants are fixating on the cross before starting each trial, how should I do? With the help of Eyetracker (Eyelink in this case), we can get the realtime gaze position and therefore we can monitor the gaze…
-
NOTES
Keyboard Calibration Using the Damn Laser
Almost no one care about how precise/reliable the keyboard pressing is, here, we built a damn cool equipment to examine this question. Broadly speaking, the time precision is good, mean variance is less than 0.2 ms. Well, let me find the r…
-
EEG
EEG Processing Steps (based on EEGLAB and ERPLAB)
Here are the basic steps I used to process BioSemi EEG data. 1 load raw data 2 channel location 3 re-reference 4 filtering (sometimes the data is very huge and therefore the filtering will be very slow, so we can do the filtering later) 5…
-
EEG
Load Eyelink data into R (in a very fast way)
These scripts are adapted from Dr. Jason Forte’s work in our lab. R ## eyelink data analysis setwd('/Users/JianChen/Dropbox/PhD/Exp1/') filenameASC = 'xxxxxx.asc' dataEyelink # extract all numeric lines & replace blink (.) with 0.0\. H…
-
EEG
Merge Behavioral Data into EEG
An example code of how I merge behavioral data into EEG Code: %% merge behavioral data into EEG % Sometimes, it's hard to lively send behavioral data to EEG system, i.e. % oral response. Here is a code example to merge behavioral result in…
-
MATLAB
Place errorbars on a grouped bar graph in MATLAB
Well, although MATLAB is not great for plotting, a few tricks can make it drawing easier. We often use errorbar function to plot errorbar but it’s impossible for Matlab to put error bars on a grouped bar graph. Matlab simply gives a shit i…
-
MATLAB
Tips to get USB keyboard index in Matlab while using KbQueueCheck
A keyboard index is necessary when using KbQueueCheck instead of KbCheck. So how to get a valid keyboard index of your desired USB keyboard? Credit: Jacob M. Paul in our lab. [Linux enviroment] 1. Check if the keyboard was recognized by th…
-
MATLAB
Sublime Text 2 with MATLAB Syntax – Windows
Sublime text does not recognize .m file from MATLAB after installation and show it in Object-c syntax. How to fix it? Here is the solution: Select Preferences -> Browse Packages… to open your Packages folder, and open the Objective-C subfo…
-
EEG
EEG topography sample
A sample to illustrate how a period of EEG topography looks like.