Export SPM results table to spreadsheet for publication

When using SPM (Statistical Parametric Mapping) for the analysis of fMRI data, one soon or later needs to export the numbers in the "SPM Results Table" to a spreadsheet format to include in a publication. While the SPM Table is neatly organized within a Matlab Figure, it is not easy to export the numbers to a friendly format.

SPM results table.
Here is a small Matlab function that simplifies the process. It neatly dumps all values in an SPM table into a .txt file.
Same table in the text editor.

You can then easily import this text file to your spreadsheet engine (excel, gdoc, etc.) as a tab separated .txt file. With little cosmetic efforts, it is ready to be inserted in your next publication.