0001 function s = xml_read_specwin(node)
0002
0003
0004
0005
0006
0007
0008
0009
0010 disp('-- reading specwin');
0011
0012 children = node.getChildNodes;
0013 for j=1:children.getLength
0014 ch = children.item(j-1);
0015 nodeName = char(ch.getNodeName);
0016 switch nodeName
0017 case 'Name'
0018 name = char(ch.getTextContent);
0019 case 'Version'
0020 ver = char(ch.getTextContent);
0021 case 'Alpha'
0022 alpha = str2num(char(ch.getTextContent));
0023 case 'PSLL'
0024 psll = str2num(char(ch.getTextContent));
0025 case 'N'
0026 N = str2num(char(ch.getTextContent));
0027
0028 otherwise
0029
0030 end
0031
0032 end
0033
0034 if strcmp(name, 'Kaiser') || strcmp(name, 'Flattop')
0035 s = specwin(name, N, psll);
0036 else
0037 s = specwin(name, psll);
0038 end
0039