def eval(self, expression):
expression_wrapped = wrap_script.format(expression)<EOL>self._libeng.engEvalString(self._ep, expression_wrapped)<EOL>mxresult = self._libeng.engGetVariable(self._ep, '<STR_LIT>')<EOL>error_string = self._libmx.mxArrayToString(mxresult)<EOL>self._libmx.mxDestroyArray(mxresult)<EOL>if error_string != "<STR_LIT>":<EOL><INDENT>raise RuntimeError("<STR_LIT>".format(error_string))<EOL><DEDENT>
Evaluate `expression` in MATLAB engine.

        Parameters
        ----------
        expression : str
            Expression is passed to MATLAB engine and evaluated.