<div class="gmail_quote">On Thu, Jun 16, 2011 at 14:48, özge erdem <span dir="ltr">&lt;<a href="mailto:ozergedem@gmail.com">ozergedem@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Can you give me more information how to use that viewer(PETSC_VIEWER_MATLAB)</blockquote></div><br><div>This does not save it as a Matlab file, it talks to a running Matlab session. To write a Matlab file, you can use</div>
<div><br></div><div><a href="http://www.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-dev/docs/manualpages/DM/PetscViewerBinaryMatlabOpen.html">http://www.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-dev/docs/manualpages/DM/PetscViewerBinaryMatlabOpen.html</a></div>
<div><br></div><div>But, especially for large files, it is much better to write a binary file in PETSc format and load it from Matlab using</div><div><br></div><div>$PETSC_DIR/bin/matlab/PetscBinaryRead.m</div>