[petsc-users] PETSC_VIEWER_MATLAB

Jed Brown jed at 59A2.org
Thu Jun 16 08:02:04 CDT 2011


On Thu, Jun 16, 2011 at 14:48, özge erdem <ozergedem at gmail.com> wrote:

> Can you give me more information how to use that
> viewer(PETSC_VIEWER_MATLAB)


This does not save it as a Matlab file, it talks to a running Matlab
session. To write a Matlab file, you can use

http://www.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-dev/docs/manualpages/DM/PetscViewerBinaryMatlabOpen.html

But, especially for large files, it is much better to write a binary file in
PETSc format and load it from Matlab using

$PETSC_DIR/bin/matlab/PetscBinaryRead.m
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20110616/6a81642d/attachment.htm>


More information about the petsc-users mailing list