Mercurial > hg > ltpda
comparison m-toolbox/classes/@workspaceBrowser/getSelectedVarNames.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 % GETSELECTEDVARNAMES returns a cell-array of the variable names of objects selected in the | |
2 % workspace browser. | |
3 % | |
4 % | |
5 function vars = getSelectedVarNames(wb) | |
6 | |
7 svars = wb.hdl.getSelectedPaths; | |
8 | |
9 vars = {}; | |
10 for kk=1:numel(svars) | |
11 var = char(svars(kk)); | |
12 var = strrep(var, 'workspace,', ''); | |
13 var = strrep(var, '[', ''); | |
14 var = strrep(var, ']', ''); | |
15 var = strrep(var, ' ', ''); | |
16 var = strrep(var, ',', '.'); | |
17 vars = [vars {var}]; | |
18 end | |
19 | |
20 end |