-
Obscure Matlab function #1: bsxfun
Here’s a first in what might become a regular feature on xcorr: an exposition of some of Matlab’s obscure but quite useful functions. Today’s function: bsxfun. The Matlab documentation states that bsxfun’s function is to: Apply element-by-element binary operation to two arrays with singleton expansion enabled This is not a very helpful definition. What bsxfun(@op,A,B)
-
Baudline software for viewing long neural recordings on Linux
Viewing the frequency spectrum of a wideband or LFP signal is important to detect noise issues, whether line noise, monitor refresh noise, reward artifacts or other anomalies. Removing artifacts is critical not only to obtain clean LFPs and wideband signals, but also to sort spikes in low SNR scenarios, for example with multi-electrode arrays. We
-
Loading huge matrices in Matlab with memmapfile
It sometimes happens that I need to work with huge matrices in Matlab – too large to fit into RAM (and I have 12GB of RAM on my work computer). A classic example is when doing reverse correlation with long sequences of images. There are a few ways to work with such a large dataset.
-
Quartz clock accuracy matters in RF estimation
To estimate visual receptive fields accurately with reverse correlation or other inference techniques, you need to know the exact timing of each stimulus and spike (give or take 10 ms). In my more naive days, I thought that I could use the nominal frame rate of the computer screen to figure out when each frame
-
Citation management with Zotero
I’ve grown increasingly frustrated with EndNote, its awkward interface and buggy Word integration. I’ve looked at a few alternate solutions: Mendeley, Papers, CiteULike. I ended up settling for Zotero, which I now love. I don’t think it makes any sense for a citation management software to use ask you to use its own internal search