OOP load update
WMennerich
W.Mennerich at gmx.net
Tue May 5 15:57:21 CDT 2009
Hello,
Matlab object loading using mat-files works like this:
The zero-args-case in the constructor is only needed, if you want to load
objects which class is not 'defined' within the current matlab session.
'Defined class' means here, that you have at least crated one object of the
class, using the constructor with the NON-zero-args-case.
The class stays 'defined', even if you delete all its objects.
If you run 'clear classes', the knowledge about the class is away and you
are no more able to load an object using a matfile if the constructor for
that class has not a 'zero-args-case'.
Matlab cares only about the first tier of fields of the classes because the
content of these fields is not fixed. That means that
a.b=0
a.c=0
and
d.b.f=0
d.c=0
are two structures 'a' and 'd' which give the 'same' class in matlab
Regards, Wolfgang
--
View this message in context: http://www.nabble.com/OOP-load-update-tp23392602p23395807.html
Sent from the Octave - Maintainers mailing list archive at Nabble.com.
More information about the Octave-maintainers
mailing list