Dear Elia,
if you want to compile code that makes use of SPM by yourself, best
would be to include your code in the SPM installation directory and call
the MATLAB compiler using config/spm_make_standalone.m.
You will see that a step in the compilation process is to make a copy of
the file Contents.m called Contents.txt.
Now, depending on what you actually want to do, you might not need to
compile a version of SPM by yourself and can instead rely on the one we
distribute:
https://en.wikibooks.org/wiki/SPM/Standalone
Given the error message, I assume this is related to your earlier post:
https://www.jiscmail.ac.uk/cgi-bin/webadmin?A2=spm;1c8c8e7.1405
When you run the "Results report" module, the variable TabDat is
available in the MATLAB workspace. In SPM12, it is also available as a
dependency (eg you can save it in a MAT-file (BasicIO > Save Variables))
and you also have the option to export it in a CSV file (Print results:
CSV file).
Best regards,
Guillaume.
On 29/05/14 15:22, Elia S. wrote:
> Dear SPM community,
>
> I'm trying to execute a compiled matlab function (which works fine as .m
> script) but this is what I get:
>
> ----------------------------------------------------------------------
>
> ??? Error using ==> spm>spm_version at 1269
> Can't obtain SPM Revision information.
>
> Error in ==> spm at 875
>
>
>
> Error in ==> spm_figure at 662
>
>
>
> Error in ==> spm_figure at 178
>
>
>
> Error in ==> spm_figure at 224
>
>
>
> Error in ==> pz_query_spm at 46
>
> -------------------------------------------------------------------------
>
> I'm running this with Matlab 2010a, any hint?
>
> Best,
> Elia.
--
Guillaume Flandin, PhD
Wellcome Trust Centre for Neuroimaging
University College London
12 Queen Square
London WC1N 3BG
|