1function [simElem, simDoc] = saveLinks(self, simElem, simDoc)
2% [SIMELEM, SIMDOC] = SAVELINKS(SIMELEM, SIMDOC)
4% Copyright (c) 2012-2026, Imperial College London
8[I,J]=find(sn.connmatrix);
12 connectionNode = simDoc.createElement(
'connection');
13 connectionNode.setAttribute(
'source', sn.nodenames(i));
14 connectionNode.setAttribute(
'target', sn.nodenames(j));
15 simElem.appendChild(connectionNode);