Index: ../trunk-jpl/src/wrappers/matlab/io/WriteMatlabData.cpp
===================================================================
--- ../trunk-jpl/src/wrappers/matlab/io/WriteMatlabData.cpp	(revision 18617)
+++ ../trunk-jpl/src/wrappers/matlab/io/WriteMatlabData.cpp	(revision 18618)
@@ -191,7 +191,7 @@
 	/*Intermediary*/
 	int         i;
 	mxArray    *dataref           = NULL;
-	const int   numfields         = 16;
+	const int   numfields         = 17;
 	const char *fnames[numfields];
 	mwSize      ndim              = 2;
 	mwSize      dimensions[2]     = {1,1};
@@ -214,6 +214,7 @@
 	fnames[i++] = "NodalElementConnectivity";
 	fnames[i++] = "CrackedVertices";
 	fnames[i++] = "CrackedEdges";
+	fnames[i++] = "PreviousNumbering";
 	_assert_(i==numfields);
 
 	/*Initialize Matlab structure*/
@@ -237,6 +238,7 @@
 	i++; SetStructureField(dataref,"NodalElementConnectivity", bamgmesh->NodalElementConnectivitySize[0], bamgmesh->NodalElementConnectivitySize[1],bamgmesh->NodalElementConnectivity);
 	i++; SetStructureField(dataref,"CrackedVertices", bamgmesh->CrackedVerticesSize[0],bamgmesh->CrackedVerticesSize[1], bamgmesh->CrackedVertices);
 	i++; SetStructureField(dataref,"CrackedEdges",bamgmesh->CrackedEdgesSize[0], bamgmesh->CrackedEdgesSize[1],bamgmesh->CrackedEdges);
+	i++; SetStructureField(dataref,"PreviousNumbering",bamgmesh->VerticesSize[0],1,bamgmesh->PreviousNumbering);
 	_assert_(i==numfields);
 
 	/*Assign output*/
