comparison m-toolbox/classes/@LTPDAworkbench/save.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 % SAVE saves an LTPDAworkbench to disk as a MAT file.
2 %
3 % CALL: save(wb)
4 % save(wb, filename)
5 %
6 % M Hewitson 10-11-08
7 %
8 % $Id: save.m,v 1.2 2010/08/06 19:10:49 ingo Exp $
9 %
10 function save(varargin)
11
12 wb = varargin{1};
13
14 if nargin == 1
15 awtinvoke(wb.mp, 'saveWorkbench');
16 else
17 awtinvoke(wb.mp, 'saveWorkbenchAs(Ljava.lang.String;)', fullfile(pwd, varargin{2}));
18 end
19
20 end
21