Akira O'ConnorProfessor, School of Psychology & Neuroscience, University of St Andrews

TopicMatlab

2010

  1. Keeping residuals after SPM estimation
    fMRI SPM Tweaks Matlab

    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…

  2. Seamless fMRI Stimulus Presentation
    Tweaks Matlab

    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…

  3. Experimenting with dropbox
    Software dropbox Matlab

    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…

  4. Marsbar script: Save spheres as both .img and .mat files
    2 commentsSPM connectivity Extensions Marsbar Matlab

    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

  1. Imagine what you could do with two 24-inch screens
    Matlab

    Did you imagine editing four Matlab scripts at the same time? No, nor did I. But I found myself doing it anyway.

  2. 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…

  3. Raspberry Pi and the lab of the future
    5 commentsSoftware Technology Matlab

    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…

  4. Codecademic
    11 commentsCoding Technology Matlab

    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…

  5. 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…