diff m-toolbox/classes/@ltpda_uo/load.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/@ltpda_uo/load.m	Wed Nov 23 19:22:13 2011 +0100
@@ -0,0 +1,27 @@
+% LOAD Loads LTPDA objects from a file
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%
+% FUNCTION:    load
+%
+% DESCRIPTION: Load ltpda user objects from a file
+%
+% CALL:        objs = <classname>.load(filename) will give a vector with all the objects
+%              [obj1, obj2, ...] = <classname>.load(filename) will give a list with single objects
+%
+%              <classname> can be any of the ltpda_uo (ao, smodel, matrix, plist, ...)
+%
+% VERSION:     $Id: load.m,v 1.3 2011/05/12 10:46:37 mauro Exp $
+%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+function varargout = load(varargin)
+  
+  % Get the filename
+  filename = varargin{1};
+  
+  % Loads the objects. These are always stored inside a 'objs' variable
+  load(filename);
+  
+  % Set output
+  varargout = utils.helper.setoutputs(nargout, objs);
+  
+end