Hi,
*I am new for matlab , I have 10 frames of video file , which i have dynamic 1-by-8 matrix values . so i need to stored these values in xml file ?(I have Attached my XML ZIP file,i wold like to generate XML Zip file ? please help me i can generate ?*if true % code
for k=1:10%Here from video image blob centrod ,find leftx,lefty,rightx,righty,upperx,uppery,bottomx,bottomy (1-by-8 matrix)
matrxi{1,k}=[23,5,3,1,3,1,2];if true % codedocNode = com.mathworks.xml.XMLUtils.createDocument('lipreading'); docRootNode = docNode.getDocumentElement; thisElement = docNode.createElement('id'); thisElement.appendChild(docNode.createTextNode(combinedStr)); docRootNode.appendChild(thisElement); matrix_thisElement = docNode.createElement('matrix'); vector_thisElement = docNode.createElement('vector'); thisElement = docNode.createElement('int');docRootNode.appendChild(thisElement)docRootNode.appendChild(vector_thisElement);docRootNode.appendChild(matrix_thisElement); xmlFileName =['tempname','.xml']; xmlwrite(xmlFileName,docNode); edit(xmlFileName);endendend*Note : I would like to write XML to form like below ?*if true% code<vector><int>3</int><int>-99</int><int>-6</int><int>79</int><int>-195</int><int>11</int><int>197</int><int>8</int></vector><vector><int>4</int><int>-99</int><int>-5</int><int>79</int><int>-195</int><int>12</int><int>196</int><int>9</int></vector><vector>end
Best Answer