view m-toolbox/classes/@minfo/loadobj.m @ 37:a4b7ceae0403
database-connection-manager
Show backtrace on unit test errors
author
Daniele Nicolodi <nicolodi@science.unitn.it>
date
Mon, 05 Dec 2011 16:20:06 +0100 (2011-12-05)
parents
f0afece42f48
children
line source
+ − % 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.5 2009/08/28 11:54:27 ingo Exp $
+ − %
+ − %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ −
+ − function objs = loadobj(objs)
+ −
+ − if isstruct(objs)
+ − for kk = 1:numel(objs)
+ − objs(kk).class = 'minfo';
+ − objs(kk).tbxver = '1.0';
+ − end
+ − objs = minfo(objs);
+ − end
+ −
+ − end