comparison m-toolbox/classes/+utils/@xml/getCell.m @ 0:f0afece42f48

Import.
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Wed, 23 Nov 2011 19:22:13 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:f0afece42f48
1
2 function objs = getCell(node, inhists)
3
4 % Get shape
5 objShape = sscanf(utils.xml.mchar(node.getAttribute('cellShape')), '%dx%d')';
6
7 if any(objShape==0)
8
9 objs = cell(objShape);
10
11 else
12
13 objs = {};
14 for jj = 1:node.getLength
15
16 childNode = node.item(jj-1);
17 if childNode.getNodeType == childNode.ELEMENT_NODE
18
19 objs = [objs {utils.xml.getFromType(childNode, inhists)}];
20
21 end
22 end
23
24 objs = reshape(objs, objShape);
25
26 end
27
28 end