フィルターのクリア

How do I form Array list in write XMl file

7 ビュー (過去 30 日間)
SAMEER ahamed
SAMEER ahamed 2014 年 2 月 22 日
コメント済み: SAMEER ahamed 2014 年 2 月 23 日
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
% code
docNode = 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);
end
end
end
*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

採用された回答

SAMEER ahamed
SAMEER ahamed 2014 年 2 月 22 日
Hi,
I am new for matlab , now i have 10 frames video file , each frame values i need to stored in xml file ?
I have Matlab Code Below like :
for i=1:10
matrix{1,i}=[leftx,lefty,rightx,righty,uppertx,uppery,bottomx,bottomy];%1-by-8 matrix
end
Below format i want to stored values please let me know how i can format like ?
example :
<reading>
<id>id1</id>
<matrix class="vector">
<vector>
<int>2</int>
<int>1</int>
<int>44</int>
<int>45</int>
<int>42</int>
<int>24</int>
<int>14</int>
<int>84</int>
</vector>
<vector>
<int>7</int>
<int>31</int>
<int>674</int>
<int>455</int>
<int>2</int>
<int>24</int>
<int>4</int>
<int>84</int>
</vector>
</matrix>
</reading>
  1 件のコメント
SAMEER ahamed
SAMEER ahamed 2014 年 2 月 23 日
Hi,
I want to show above result like , please see my previous forum .....let me know awaiting result.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeImport, Export, and Conversion についてさらに検索

タグ

タグが未入力です。

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by