From: Rachel Melinek on
Is it possible to generate a script from performing tasks on matlab or packages linked to matlab eg SPM. I ask because I imported an image into matlab and was able to find the code that allowed the image to be imported.
From: Andy on
"Rachel Melinek" <r.melinek(a)surrey.ac.uk> wrote in message <i0i1u1$li0$1(a)fred.mathworks.com>...
> Is it possible to generate a script from performing tasks on matlab or packages linked to matlab eg SPM. I ask because I imported an image into matlab and was able to find the code that allowed the image to be imported.

I'm not quite sure what you're looking for, but here are two possible answers.

1) Yes, you can write code that will automatically generate other code (i.e. save it to an m-file).

2) Yes, there are many wizards and utilities in the MATLAB IDE that will provide for you the code they used.
From: Rachel Melinek on
"Andy " <theorigamist(a)gmail.com> wrote in message <i0i2ik$2e5$1(a)fred.mathworks.com>...
> "Rachel Melinek" <r.melinek(a)surrey.ac.uk> wrote in message <i0i1u1$li0$1(a)fred.mathworks.com>...
> > Is it possible to generate a script from performing tasks on matlab or packages linked to matlab eg SPM. I ask because I imported an image into matlab and was able to find the code that allowed the image to be imported.
>
> I'm not quite sure what you're looking for, but here are two possible answers.
>
> 1) Yes, you can write code that will automatically generate other code (i.e. save it to an m-file).
>
> 2) Yes, there are many wizards and utilities in the MATLAB IDE that will provide for you the code they used.

Maybe I should phrase the question in another way, I don't think its very clear.

If I am running a programming using matlab say SPM and I want to know what code matlab is running after I press certain buttons is there a way to do this?

Basically how can I find out which m files are being run after pressing certain buttons. Also do my choices on the SPM interface produce any script say if I choose to analyse certain files and if so how can I find any script generated?

Many thanks
From: Walter Roberson on
Rachel Melinek wrote:

> If I am running a programming using matlab say SPM and I want to know
> what code matlab is running after I press certain buttons is there a way
> to do this?
> Basically how can I find out which m files are being run after pressing
> certain buttons.

You could use the Matlab profiler.