petsc-3.7.1 2016-05-15
Report Typos and Errors

PetscStartMatlab

starts up MATLAB with a MATLAB script

Synopsis

PetscErrorCode  PetscStartMatlab(MPI_Comm comm,const char machine[],const char script[],FILE **fp)
Logically Collective on MPI_Comm, but only processor zero in the communicator does anything Many br

Input Parameters

comm - MPI communicator Many br
machine - optional machine to run MATLAB on Many br
script - name of script (without the .m) Many br

Output Parameter

fp -a file pointer returned from PetscPOpen() Many br

Many br

Notes

This overwrites your matlab/startup.m file Many br

The script must be in your MATLAB path or current directory Many br

Assumes that all machines share a common file system Many br

See Also

PetscPOpen(), PetscPClose()

Level:intermediate
Location:
src/sys/fileio/smatlab.c
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages