Mercurial > hg > ltpda
comparison 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 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:f0afece42f48 |
---|---|
1 % LOAD Loads LTPDA objects from a file | |
2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
3 % | |
4 % FUNCTION: load | |
5 % | |
6 % DESCRIPTION: Load ltpda user objects from a file | |
7 % | |
8 % CALL: objs = <classname>.load(filename) will give a vector with all the objects | |
9 % [obj1, obj2, ...] = <classname>.load(filename) will give a list with single objects | |
10 % | |
11 % <classname> can be any of the ltpda_uo (ao, smodel, matrix, plist, ...) | |
12 % | |
13 % VERSION: $Id: load.m,v 1.3 2011/05/12 10:46:37 mauro Exp $ | |
14 % | |
15 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
16 function varargout = load(varargin) | |
17 | |
18 % Get the filename | |
19 filename = varargin{1}; | |
20 | |
21 % Loads the objects. These are always stored inside a 'objs' variable | |
22 load(filename); | |
23 | |
24 % Set output | |
25 varargout = utils.helper.setoutputs(nargout, objs); | |
26 | |
27 end |