:orphan:
# PetscMatlabEngineGetOutput
Gets a string buffer where the MATLAB output is printed
## Synopsis
```
#include "petscmatlab.h"
PetscErrorCode PetscMatlabEngineGetOutput(PetscMatlabEngine mengine, char **string)
```
Not Collective
## Input Parameter
- ***mengine -*** the MATLAB engine
## Output Parameter
- ***string -*** buffer where MATLAB output is printed
## See Also
`PetscMatlabEngineDestroy()`, `PetscMatlabEnginePut()`, `PetscMatlabEngineGet()`,
`PetscMatlabEngineEvaluate()`, `PetscMatlabEngineCreate()`, `PetscMatlabEnginePrintOutput()`,
`PETSC_MATLAB_ENGINE_()`, `PetscMatlabEnginePutArray()`, `PetscMatlabEngineGetArray()`, `PetscMatlabEngine`
## Level
advanced
## Location
src/sys/classes/matlabengine/matlab.c
## Examples
src/vec/vec/tutorials/ex31.c
---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/classes/matlabengine/matlab.c)
[Index of all Sys routines](index.md)
[Table of Contents for all manual pages](/manualpages/index.md)
[Index of all manual pages](/manualpages/singleindex.md)