view m-toolbox/classes/@plotter/update_struct.m @ 43:bc767aaa99a8
CVS Update
author
Daniele Nicolodi <nicolodi@science.unitn.it>
date
Tue, 06 Dec 2011 11:09:25 +0100 (2011-12-06)
parents
f0afece42f48
children
line source
+ − % UPDATE_STRUCT update the input structure to the current ltpda version
+ − %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ − %
+ − % FUNCTION: update_struct
+ − %
+ − % DESCRIPTION: UPDATE_STRUCT update the input structure to the current
+ − % ltpda version
+ − %
+ − % CALL: obj_struct = update_struct(obj_struct, version_str);
+ − %
+ − % VERSION: $Id: update_struct.m,v 1.1 2010/12/08 15:46:29 hewitson Exp $
+ − %
+ − % HISTORY: 07-07-2008 Diepholz
+ − % Creation
+ − %
+ − %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ −
+ − function varargout = update_struct(varargin)
+ −
+ − obj_struct = varargin{1};
+ − struct_ver = varargin{2};
+ −
+ − % get the version of the current toolbox
+ − tbx_ver = strtok(getappdata(0, 'ltpda_version'));
+ −
+ − % get only the version string without the MATLAB version
+ − struct_ver = strtok(struct_ver);
+ −
+ −
+ −
+ − varargout{1} = obj_struct;
+ − end
+ −