diff --git a/include_interfaces/matlab_interface.hpp b/include_interfaces/matlab_interface.hpp index 80cca06..1e65257 100644 --- a/include_interfaces/matlab_interface.hpp +++ b/include_interfaces/matlab_interface.hpp @@ -164,7 +164,9 @@ std::atomic _done=false; } void eraseAndPrint(std::string val){ - printf("%s\n",val.c_str()); + mxArray *arg[1]; + arg[0]=mxCreateString(val.c_str()); + mexCallMATLAB(0,NULL,1,arg,"disp"); } std::any convert2NativeMatrix(g2s::DataImage &image){