|
In article <gf9bjp$h8b$1@fred.mathworks.com>,
"Daniel Armyr" <firstname@lastname.se> wrote:
> Hi.
> Now with Matlab supporting classes, alot of these constructs that used to be
> structs, I have now implemented as classes. Now, once I have made a class,
> does anyone know of a built-in method to create a struct that has as its
> fields, all the properties of the class?
>
> What I want is to take a class that may have very dynamic behaviour and
> freeze it into a structure of static data.
>
> Sincerely
> Daniel Armyr
s = struct(object);
--
Doug Schwarz
dmschwarz&ieee,org
Make obvious changes to get real email address.
|