diff m-toolbox/classes/@LTPDAworkbench/cb_export2mfile.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/@LTPDAworkbench/cb_export2mfile.m	Wed Nov 23 19:22:13 2011 +0100
@@ -0,0 +1,21 @@
+% CB_EXPORT2MFILE export the selected pipeline to an m-file
+%
+% CALL: LTPDAworkbench.cb_export2mfile
+%
+% M Hewitson 13-11-08
+%
+% $Id: cb_export2mfile.m,v 1.2 2010/08/06 19:10:48 ingo Exp $
+%
+function cb_export2mfile(varargin)
+  
+  wb = varargin{1};
+  
+  % get a file name from the user
+  [filename, pathname] = uiputfile('*.m', 'Export pipeline to');
+  if isequal(filename,0) || isequal(pathname,0)
+  else
+    wb.export(fullfile(pathname, filename));
+  end
+  
+end
+