Mercurial > hg > ltpda
comparison m-toolbox/classes/+utils/@xml/getShape.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 shape = getShape(node) | |
3 | |
4 if (node.hasAttribute('shape')) | |
5 shape = sscanf(utils.xml.mchar(node.getAttribute('shape')), '%dx%d')'; | |
6 else | |
7 error('### The node [%s] doesn''t have a attribute ''shape''', utils.xml.mchar(node.getNodeName())); | |
8 end | |
9 | |
10 end |