comparison m-toolbox/classes/@sigBuilder/cb_buildSave.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 % CB_BUILDSAVE fires when the user clicks 'build & save'
2 %
3 % M Hewitson
4 %
5 % $Id: cb_buildSave.m,v 1.1 2008/10/19 11:42:40 hewitson Exp $
6 %
7 function cb_buildSave(varargin)
8
9 myh = varargin{1};
10 mainfig = varargin{end};
11
12 % Build signal
13 obj = sigBuilder.buildSignal(mainfig);
14
15 % Get a file name from the user
16 [filename, pathname] = uiputfile({'*.xml', 'LTPDA XML File (*.xml)'; '*.mat', 'MAT File (*.mat)'}, 'Save File as');
17
18 if isequal(filename,0) || isequal(pathname,0)
19 disp('Cancelled.')
20 else
21 fname = fullfile(pathname, filename);
22 save(obj, fname);
23 end
24 end