diff m-toolbox/classes/@sigBuilder/buildSignal.m @ 0:f0afece42f48

Import.
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Wed, 23 Nov 2011 19:22:13 +0100
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/m-toolbox/classes/@sigBuilder/buildSignal.m	Wed Nov 23 19:22:13 2011 +0100
@@ -0,0 +1,21 @@
+% BUILDSIGNAL builds the described signals
+% 
+% M Hewitson
+% 
+% $Id: buildSignal.m,v 1.1 2008/10/19 11:42:40 hewitson Exp $
+% 
+function obj = buildSignal(mainfig)
+  
+  th = findobj(mainfig.handle, 'Tag', 'JoinTypeSelect');
+  jtype = get(th, 'String');
+  jtype = jtype{get(th, 'Value')};
+  
+  lh = findobj(mainfig.handle, 'Tag', 'sigBuilderSignalList');
+  
+  % Get active rows
+  rdata = get(lh, 'Data');  
+  sigs = mainfig.signals([rdata{:,5}]);  
+  % Join the signal
+  obj = feval(jtype, sigs);
+  
+end