PetscStartMatlab#

starts up MATLAB with a MATLAB script

Synopsis#

PetscErrorCode PetscStartMatlab(MPI_Comm comm, const char machine[], const char script[], FILE **fp)

Logically Collective, but only processor zero in the communicator does anything

Input Parameters#

  • comm - MPI communicator

  • machine - optional machine to run MATLAB on

  • script - name of script (without the .m)

Output Parameter#

Notes#

This overwrites your matlab/startup.m file

The script must be in your MATLAB path or current directory

Assumes that all machines share a common file system

See Also#

PetscPOpen(), PetscPClose()

Level#

intermediate

Location#

src/sys/fileio/smatlab.c


Edit on GitLab

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