TopicMatlab
2010
- Keeping residuals after SPM estimation
Occasionally, it's nice to look under the bonnet and see what's going on during any automated process that you take for granted. More often than not, I do this when the automaticity has broken down and…
- Seamless fMRI Stimulus Presentation
One of the most annoying and stressful things that can happen during an fMRI experiment is for system notifications, pop-ups or even the Windows taskbar to suddenly appear on the screen on which you are presenting…
- Experimenting with dropbox
Dropbox is a fantastically versatile piece of software based on seamless integration of user-defined folders with ' the cloud '. Much has been written about how it can be used for general computing, e.g. from Lifehacker…
- Marsbar script: Save spheres as both .img and .mat files
Below (indented) is a straightforward MATLAB/SPM/Marsbar script for generating separate Marsbar ROI and Nifti ROI spheres (user-defined radius) from a set of user-defined MNI coordinates stored in a text file ('spherelist.txt' saved in the same directory…
2012
- Imagine what you could do with two 24-inch screens
Did you imagine editing four Matlab scripts at the same time? No, nor did I. But I found myself doing it anyway.
- Marsbar error in pr_stat_compute
Do not duplicate I ran into the following error when trying to use a script to make Marsbar extract betas Error in pr_stat_compute at 34 Indices too large for contrast structure This problem occurred when I…
- Raspberry Pi and the lab of the future
Raspberry Pi schematic from I think the Raspberry Pi is going to be fantastic, for reasons summed up very nicely by David McGloin - the availability of such a cheap and versatile barebones technology will kickstart…
- Codecademic
Points and badges For the past week or so, I have been working my way through Codecademy's JavaScript tutorials. I can't recommend them highly enough. As things stand, I have a full house of 480 points…
- Modifying DrawFormattedText to allow offset of horizontal centering
To present stimuli for my experiments in the lab, I use Psychophysics Toolbox (Psychtoolbox) in conjunction with Matlab. One limitation of Psychtoolbox is that the included DrawFormattedText function does not allow text to be horizontally centered…