Mercurial > hg > ltpda
diff m-toolbox/classes/@pest/loadobj.m @ 0:f0afece42f48
Import.
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Wed, 23 Nov 2011 19:22:13 +0100 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/m-toolbox/classes/@pest/loadobj.m Wed Nov 23 19:22:13 2011 +0100 @@ -0,0 +1,22 @@ +% LOADOBJ is called by the load function for user objects. +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% DESCRIPTION: LOADOBJ is called by the load function for user objects. +% When an object is loaded from a MAT-file, the load function calls +% the loadobj method if the structure of the object is changed. +% +% VERSION: $Id: loadobj.m,v 1.1 2009/12/02 15:39:45 ingo Exp $ +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +function objs = loadobj(objs) + + if isstruct(objs) + for kk = 1:numel(objs) + objs(kk).class = 'pest'; + objs(kk).tbxver = '1.0'; + end + objs = pest(objs); + end + +end