# 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
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/classes/matlabengine/matlab.c.html#PetscMatlabEngineGetOutput">src/sys/classes/matlabengine/matlab.c</A>

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/vec/vec/tutorials/ex31.c.html">src/vec/vec/tutorials/ex31.c.html</A><BR>


---
[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](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
