comparison m-toolbox/classes/@LTPDAworkbench/cb_submitObjects.m @ 31:a26669b59d7e database-connection-manager

Update LTPDAworkbench
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Mon, 05 Dec 2011 16:20:06 +0100
parents f0afece42f48
children
comparison
equal deleted inserted replaced
30:317b5f447f3e 31:a26669b59d7e
7 % $Id: cb_submitObjects.m,v 1.9 2010/08/06 19:10:49 ingo Exp $ 7 % $Id: cb_submitObjects.m,v 1.9 2010/08/06 19:10:49 ingo Exp $
8 % 8 %
9 function cb_submitObjects(varargin) 9 function cb_submitObjects(varargin)
10 10
11 wb = varargin{1}; 11 wb = varargin{1};
12
13 wb
12 14
13 % Get all selected blocks 15 % Get all selected blocks
14 sbs = awtinvoke(wb.mp, 'getSelectedBlocks'); 16 sbs = awtinvoke(wb.mp, 'getSelectedBlocks');
15 17
16 outvars = {}; 18 outvars = {};
47 for kk=1:numel(outvars) 49 for kk=1:numel(outvars)
48 cmd = [cmd outvars{kk} ',']; 50 cmd = [cmd outvars{kk} ','];
49 end 51 end
50 52
51 cmd = [cmd 'sinfo, plist(''hostname'', ''''));']; 53 cmd = [cmd 'sinfo, plist(''hostname'', ''''));'];
54
55 disp(sinfo)
56 disp(cmd)
52 57
53 assignin('base', 'sinfo', sinfo); 58 assignin('base', 'sinfo', sinfo);
54 try 59 try
55 evalin('base', cmd); 60 evalin('base', cmd);
56 catch me 61 catch me