Hello All,
I am using the C++ engine api to connect to MATLAB. Is there a way to print messages to the MATLAB command windows from the C++ API (eg using matlabengine->eval , matlabengine->feval etc?).
I have tried using
matlabEngine->eval(u"disp(\"test2\")", nullptr, nullptr);
matlabEngine->eval(u"fprintf(\"test2\")", nullptr, nullptr);
Which, even though I do not specify standard out and error streams, does not print to the command window.
When I do specify output streams - I do capture the message output in c++.
The Reason for this is there are clib functions that we call from within the matlab command window, and some of these functions have associated messages - that we would like to print out interactively.
Thanks,
Trevor