Mercurial > hg > ltpda
comparison m-toolbox/classes/@plotter/update_struct.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 % UPDATE_STRUCT update the input structure to the current ltpda version | |
2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
3 % | |
4 % FUNCTION: update_struct | |
5 % | |
6 % DESCRIPTION: UPDATE_STRUCT update the input structure to the current | |
7 % ltpda version | |
8 % | |
9 % CALL: obj_struct = update_struct(obj_struct, version_str); | |
10 % | |
11 % VERSION: $Id: update_struct.m,v 1.1 2010/12/08 15:46:29 hewitson Exp $ | |
12 % | |
13 % HISTORY: 07-07-2008 Diepholz | |
14 % Creation | |
15 % | |
16 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
17 | |
18 function varargout = update_struct(varargin) | |
19 | |
20 obj_struct = varargin{1}; | |
21 struct_ver = varargin{2}; | |
22 | |
23 % get the version of the current toolbox | |
24 tbx_ver = strtok(getappdata(0, 'ltpda_version')); | |
25 | |
26 % get only the version string without the MATLAB version | |
27 struct_ver = strtok(struct_ver); | |
28 | |
29 | |
30 | |
31 varargout{1} = obj_struct; | |
32 end | |
33 |