MATLAB: ERROR IN MATLAB CODER…

matlab coderMATLAB Compiler

I´m using the MATLAB example Hello World for testing the MATLAB coder tool. (The simplest example in the MATLAB HELP), and the MATLAB give-me follow error report in the prompt window.
??? Attempted to access instrumentAndRunPos(0); index must be a positive integer or logical.
Error in ==> echodemo>formatError at 245 stackStart = max(iRet(iRet < instrumentAndRunPos(end)));
Error in ==> echodemo at 183 disp(formatError(mExc))
somebody could help me? Thanks in advance.

Best Answer

Problem solved: go to System-> Enviroment Variable-> System Variable and verify if there is in the Varible Path the following directories
%SystemRoot%\System32;%SystemRoot%;%SystemRoot%\System32\Wbem;%MATLAB ROOT%\runtime\win32;%MATLAB ROOT%\bin
The problem was solved after setting that.
Thanks a lot Kaustubha Govind Titus Edelhofer!