STRING writes a command string that can be used to recreate the input window object. M Hewitson 29-03-07 $Id: string.html,v 1.1 2007/06/08 14:15:07 hewitson Exp $
0001 function cmd = string(sw) 0002 0003 % STRING writes a command string that can be used to recreate the input 0004 % window object. 0005 % 0006 % M Hewitson 29-03-07 0007 % 0008 % $Id: string.html,v 1.1 2007/06/08 14:15:07 hewitson Exp $ 0009 % 0010 0011 switch sw.name 0012 case 'Kaiser' 0013 cmd = ['specwin(''' sw.name ''', ' num2str(length(sw.win)) ', ' num2str(sw.psll) ')']; 0014 case 'Flattop' 0015 cmd = ['specwin(''' sw.name ''', ' num2str(length(sw.win)) ', ' num2str(sw.psll) ')']; 0016 otherwise 0017 cmd = ['specwin(''' sw.name ''', ' num2str(length(sw.win)) ')']; 0018 end 0019 0020 % END