-
Getting gcc to work with Matlab in Ubuntu to compile mex files
Matlab R2009b, Lucid Lynx My version of gcc (4.4) is too high for Matlab R2009b (4.1 and 4.2), and Matlab chokes on it. The solution is as follows: Install gcc-4.2: sudo apt-get install gcc-4.2 sudo apt-get install g++-4.2 In matlab, run mex -setup and select the GCC compiler (I believe you will have to have…
-
Getting a plot with transparency to export in a vector format (e.g. eps) in Matlab
If you have a plot where one of the objects has the property facealpha or edgealpha set to something else than 1, Matlab will choke when attempting to export the figure to eps (it will render the plot as a low-res bitmap and stick it in an eps file if you use exportfig). The solution:…
-
CRCNS data set pvc-1 by Ringach lab – getting something to work
*Now with some 2011 updates* In a few months, our lab will be doing permanent implant recordings in V4, and analyzing this data will be a major challenge. In contrast to single electrode recordings, the stimuli used for array recordings is usually not optimized for a given cell (say, so that the stimulus is centered…
-
CRCNS data sharing website
Here’s a great initiative from computational neuroscience people at Berkeley, the CRCNs data sharing website, where you can download spike trains in response to complex spatiotemporal stimuli in V1 of cats and monkeys, auditory cortex, and more. Great datasets to test your machine learning and computational skills on.
-
Log determinant of positive definite matrices in Matlab
In Bayesian data analysis, the log determinant of symmetric positive definite matrices often pops up as a normalizing constant in MAP estimates with multivariate Gaussians (ie, chapter 27 of Mackay). Oftentimes, the determinant of A will evaluate as infinite in Matlab although the log det is finite, so one can’t use log(det(A)). However, we know…
-
Getting the steerable pyramid toolbox to work in Matlab 2008a
For whatever reason, Matlab 2008a doesn’t like the mex files that come with the steerable pyramid toolbox. If you try to recompile the mex files with Matlab’s built-in compiler, you will find that it crashes whenever you call buildSpyr. You can do the following to get it to work: Install Visual C++ express edition. Restart…