>IMHO porting SPM to a freeware package would be a very useful community >service. But it could also be very difficult. Besides the *.m files, you >have to convert the compiled mex files, too. Thanks for the reply. Actually, the MEX part should be the trivial part since it consists of C/C++ code and typically compiles with any C/C++ compiler including gcc. This part has already been done for SPM2 and there were no compilation or linking issues (where the end product of MEX is a shared library.) There may be runtime issues with shared libraries but it should relatively easy to fix.