STRING writes a command string that can be used to recreate the input window object. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DESCRIPTION: STRING writes a command string that can be used to recreate the input window object. CALL: cmd = string(sw) VERSION: $Id: string.m,v 1.2 2007/07/18 13:58:45 ingo Exp $ HISTORY: 29-03-2007 M Hewitson Creation %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0001 function cmd = string(sw) 0002 % STRING writes a command string that can be used to recreate the input window object. 0003 % 0004 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0005 % 0006 % DESCRIPTION: STRING writes a command string that can be used to recreate the 0007 % input window object. 0008 % 0009 % CALL: cmd = string(sw) 0010 % 0011 % VERSION: $Id: string.m,v 1.2 2007/07/18 13:58:45 ingo Exp $ 0012 % 0013 % HISTORY: 29-03-2007 M Hewitson 0014 % Creation 0015 % 0016 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0017 0018 switch sw.name 0019 case 'Kaiser' 0020 cmd = ['specwin(''' sw.name ''', ' num2str(length(sw.win)) ', ' num2str(sw.psll) ')']; 0021 case 'Flattop' 0022 cmd = ['specwin(''' sw.name ''', ' num2str(length(sw.win)) ', ' num2str(sw.psll) ')']; 0023 otherwise 0024 cmd = ['specwin(''' sw.name ''', ' num2str(length(sw.win)) ')']; 0025 end 0026 0027 % END