<div dir="ltr">This is a result of the FEX code writing in the legacy format whereas the the current VTK format is XML based. All the examples use the xml format so presumably that is what you are writting out.<div><br></div><div><br></div><div><a href="http://www.vtk.org/VTK/img/file-formats.pdf">http://www.vtk.org/VTK/img/file-formats.pdf</a><br></div><div><a href="http://www.vtk.org/Wiki/VTK_XML_Formats">http://www.vtk.org/Wiki/VTK_XML_Formats</a><br></div><div class="gmail_extra"><a href="http://www.vtk.org/Wiki/VTK/Writing_VTK_files_using_python#.22legacy.22">http://www.vtk.org/Wiki/VTK/Writing_VTK_files_using_python#.22legacy.22</a></div><div class="gmail_extra"><br></div><div class="gmail_extra"><div><br></div><div>Cheers</div><div>Chris</div><div><br></div>
<br><div class="gmail_quote">On Thu, Sep 18, 2014 at 9:07 AM, zhq <span dir="ltr"><<a href="mailto:15891495523@126.com" target="_blank">15891495523@126.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><a href="http://www.mathworks.com/matlabcentral/fileexchange/23416-writetovtk" target="_blank">http://www.mathworks.com/matlabcentral/fileexchange/23416-writetovtk</a><br>
<br>
this is a existed code , but I find it doesn't work !<br>
<br>
I use VTK code to read a series of dicom file , and write to vtk format file<br>
. I find this file differ from the file generated  by the existed code .<br>
<br>
And if I read the file generated by the existed code using VTK code , it<br>
doesn't work !<br>
<br>
So , If anybody could tell me what's the vtk format file ? How can I write a<br>
3D matrix to vtk format file using matlab ?<br>
<br>
Thanks in advance!<br>
<br>
Zhq<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/I-want-to-write-a-matlab-3D-matrix-to-vtk-file-tp5728800.html" target="_blank">http://vtk.1045678.n5.nabble.com/I-want-to-write-a-matlab-3D-matrix-to-vtk-file-tp5728800.html</a><br>
Sent from the VTK - Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br></div></div>