PetscViewerMatlabPutVariable#

Write a raw MATLAB mxArray variable into a PETSCVIEWERMATLAB file under a chosen name.

Synopsis#

#include "petscviewer.h"   
#include "petscmat.h"      
PetscErrorCode PetscViewerMatlabPutVariable(PetscViewer viewer, const char *name, void *mat)

Not Collective; only processor zero writes the variable

Input Parameters#

  • viewer - the PETSCVIEWERMATLAB viewer

  • name - the MATLAB variable name

  • mat - the mxArray * variable to write (cast to void *)

See Also#

PetscViewer, PETSCVIEWERMATLAB, PetscViewerMatlabPutArray(), PetscViewerMatlabGetArray(), PetscViewerMatlabOpen()

Level#

advanced

Location#

src/sys/classes/viewer/impls/matlab/vmatlab.c


Index of all Viewer routines
Table of Contents for all manual pages
Index of all manual pages