MATLAB Bundle has been GitHubbed

Posted by matt
on Friday, September 05

This is just a quick note to say that I’ve push a copy of the MATLAB TextMate bundle to GitHub.

You can read my post on google groups, or just hit the site.

Happy forking!

Code Updates and I'm Off To Boston

Posted by matt
on Sunday, July 06

I’ve just added a new repository to GitHub, called octave-scattered-image, into which I’ve started cleaning up, and pushing my Octave functions for processing scattered image data. Have a look, and feel free to contribute. My current plan is to distribute it as an octave package, but that’s currently untested.

Also, in other news, I’m off to Boston this week, for IGARSS 2008, the first conference of my PhD. The only disadvantage of this jaunt, is that I have to present a paper. I’ll put the sides up when I get back, provided I wasn’t laughed/heckled off the stage! Wish me luck!

MATLAB / Octave Code and Docs

Posted by matt
on Wednesday, June 25

During the course of my PhD, and undergraduate degree, I’ve amassed quite a lot of MATLAB code, and knowledge.

This page will be the where I try to share some of that knowledge and code.

Documents:

Code on GitHub

  • Scattered Image Toolkit: A work in progress toolkit to provide Octave with functions for the analysis and interpolation of 2-D scattered data (scattered images). MIT licensed.
  • My dotfiles repository contains my octaverc

Code on the Mathworks File Exchange:

  • histoutline: Plot a histogram outline.
  • secplot: Plot given theta and phi values as a series of wedges of equal width.
  • plot_colorbar: Plot a colorbar as a figure for publication.
  • last_modified: Return the last modified file(s) in a given directory or glob.
  • Diffusion Distance: Calculate the diffusion distance between histograms

Other Stuff

I maintain the MATLAB bundle for TextMate. Grab it using the following commands:

    export LC_CTYPE=en_US.UTF-8
    mkdir -p ~/Library/Application Support/TextMate/Bundles
    cd ~/Library/Application Support/TextMate/Bundles
    svn co http://macromates.com/svn/Bundles/trunk/Bundles/Matlab.tmbundle

Then join the Google group to discuss things you’d like to see added, bugs, or other changes.

MEX Support in Octave

Posted by matt
on Monday, January 14

I used to be a fairly heavily Octave user, but when I started my PhD I had to use MATLAB for some specific toolboxes. I found this quite annoying, because I think MATLAB is big, and slow, and clunky (and leaks memory). So I’m quite happy to report that I think that this might be about to change.

On December 21 2007, Octave 3 was released. Now, I’m not sure if this is relevant to this post, but it did prompt me to upgrade, and since I was playing with some MEX (MATLAB external interface) files, I decided to see if I could make them work with Octave.

Well, I could. And that’s the cool thing – I didn’t have to change anything. I just typed mex morpho.cpp and out popped an object file. There was no fuss at all, and no difference from MATLAB. I think this is a really good development for Octave, as it plugs what I’ve always found to be a fairly big gap between Octave and MATLAB’s functionality. I’ll be trying this with some of my other MEX stuff, and I’ll report back here with any new findings – I’m expecting it all to go fairly smoothly though!