- (improvement): check size of given stringarg and chose an appropriate length of command char array, instead of always allocating 3000 characters.
- If the function is returned by an exception, command is not freed. Please check in all if-cases if command is != NULL and if so free it there, too.
In order to test this, a computer with installed Matlab is required. Enable Matlab support in CMake of itom (BUILD_WITH_PYMATLAB = True) and set the variable PYMATLAB_INCLUDE_DIR to something like C:/Program Files/MATLAB/R2012a/extern/include.
Hint: Matlab has not to be available on the destination computer, only if one tries to start a session (dynamic function resolve in libmx.dll and libeng.dll)