comparison m-toolbox/m/gui/gltpda/g_pzmodelLoad.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 function g_pzmodelLoad(hObject, varargin)
2
3 global params
4
5 currParamIndex = get(hObject,'UserData');
6 try [FileName,PathName] = uigetfile('*.xml','Select the .XML pzmodel file');
7 FileAddress = strcat(PathName,FileName);
8 pzObj = pzmodel(FileAddress);
9 if isempty(pzObj), return; end
10 params = pset(params,params.params(currParamIndex).key,pzObj);
11 catch
12 end
13 set(findobj('Tag','apply'),'Enable','on');
14 set(findobj('Tag','undo'),'Enable','on');
15
16 end