Dear Roberto & John,
a function that proved to be very helpful in our group is "m2html" by
Guillaume Flandin (http://www.artefact.tk/software/matlab/m2html/). It
is a matlab function that creates a folder with cross-linked hypertext
files including intuitive syntax highlighting for each matlab file it
can find in a given target directory.
You can call it by something like:
cd <directory above spm-directory>
m2html('mfiles',{'spm2'}, 'htmldir','~/huhu/spm2_html',
'recursive','on', 'global','on');
Enjoy,
Marcus
Roberto Viviani wrote:
> There is a matlab command, depfun, for this purpose. It only works on a
> function by function basis, however. Quoting from Matlb's help:
>
> "The depfun function lists all of the functions and scripts, as well as
> built-in functions,
> that a specified M-file needs to operate. This is useful for finding all of
> the M-files that
> you need to compile for a MATLAB runtime application.
>
> list = depfun('file_name') creates a cell array of strings containing the
> paths of
> all the files that file_name.m uses. This includes the second-level files
> that are called
> directly by file_name.m, as well as the third-level files that are called by
> the
> second-level files, and so on."
>
> All the best,
> Roberto
>
>
> Roberto Viviani
> Dept. Psychiatry III, University of Ulm, Germany
>
> ----- Original Message -----
> From: "John Ashburner" <[log in to unmask]>
> To: <[log in to unmask]>
> Sent: Wednesday, February 01, 2006 1:14 PM
> Subject: Re: Extract image and convert it into matlab
>
>
>
>>>is there currently a summary of objects and functions used in SPM5 or
>>>is this only available by looking at the SPM code?
>>
>>I'm afraid it's only available by looking at the code. The Help button
>
> may be
>
>>useful in figuring out what functions call each other though. Also, the
>>'lookfor' command in Matlab may also help you.
>>
>>Best regards,
>>-John
>>
>
>
--
-------------------------------
Dr. Marcus Wilms
Cognitive Neurology Group
Institute of Medicine
Forschungszentrum Juelich
52425 Juelich, Germany
Phone: +49 (02461) 61-6184
E-Mail: [log in to unmask]
Home: http://www.netwilms.net
----------------------------><>
|