Hi again,
just for the sake of completeness (in case others run into this) a
follow up:
the (possibly undesirable) conversion of the matlabbatch object to a
structure seems to happen as well when spm8 folder is in the matlab path.
It first disappears when one has actually first started SPM8 at some
point during a running matlab session, regardless of exiting the
application again. Apparently some global variables initiated by SPM or
so prevent this conversion from happening.
So perhaps it is smart to first start SPM8 (and if needed quit it again)
and then run scripts using batching code.
Not sure whether it makes a difference, but the warning looks scary
enough to me.
Happy batchin' to all,
Bas
Op 12-05-11 15:42, Stephen J. Fromm schreef:
> What happens if you put SPM in your matlab path? Usually for me that's enough to make the warning disappear.
>
>
Op 11-05-11 18:48, S.F.W. Neggers schreef:
> Dear list,
>
> I created a matlab batch job in the SPM8 batching system, and saved it
> to disk as a mat file. Now I want to use it in my own pipeline (matlab
> software) to do some repetative number crunching. I work with matlab
> version 7.9.0529 (R2009b), and SPM8 rev 4290.
>
> When loading this matlabbatch structure from disk, I obtained the
> following warning:
>
> --- snip ---
> > load testbatch_spm8.mat
> Warning: Class ':all:' is an unknown object class. Element(s) of
> this class in array 'matlabbatch' have been converted to
> structures.
> ---
>
> When I now fill in some fields according to my needs, and save this
> structure again to disk, will all be OK?
>
> Apparently matlabbatch originally is a class with methods in an OOP
> sense, and I dont want to break things by irreversibly convert classes
> to fields of a structure. I never had this warning in SPM5, and I am
> in the process of moving my pipeline to spm8.
>
> Thanks for your pointers,
>
> Bas
--
--------------------------------------------------
Dr. S.F.W. Neggers
Division of Brain Research
Rudolf Magnus Institute for Neuroscience
Utrecht University Medical Center
Visiting : Heidelberglaan 100, 3584 CX Utrecht
Room B.01.1.03
Mail : Huispost B01.206, P.O. Box
3508 GA Utrecht, the Netherlands
Tel : +31 (0)88 7559609
Fax : +31 (0)88 7555443
E-mail : [log in to unmask]
Web : http://www.neuromri.nl/people/bas-neggers
--------------------------------------------------
------------------------------------------------------------------------------
De informatie opgenomen in dit bericht kan vertrouwelijk zijn en is
uitsluitend bestemd voor de geadresseerde. Indien u dit bericht onterecht
ontvangt, wordt u verzocht de inhoud niet te gebruiken en de afzender direct
te informeren door het bericht te retourneren. Het Universitair Medisch
Centrum Utrecht is een publiekrechtelijke rechtspersoon in de zin van de W.H.W.
(Wet Hoger Onderwijs en Wetenschappelijk Onderzoek) en staat geregistreerd bij
de Kamer van Koophandel voor Midden-Nederland onder nr. 30244197.
Denk s.v.p aan het milieu voor u deze e-mail afdrukt.
------------------------------------------------------------------------------
This message may contain confidential information and is intended exclusively
for the addressee. If you receive this message unintentionally, please do not
use the contents but notify the sender immediately by return e-mail. University
Medical Center Utrecht is a legal person by public law and is registered at
the Chamber of Commerce for Midden-Nederland under no. 30244197.
Please consider the environment before printing this e-mail.
|