I have a third-party DLL that prints to stdout and stderr. How do I view this in MATLAB?

2 Ansichten (letzte 30 Tage)
Hi guys. As the title suggests, I'm trying to use a shared library with MATLAB (r2017a). When called from Qt or Visual Studio, text is printed to the Qt/Visual Studio console with no issues. However, when I try and call it from a mex file, no text is printed to the MATLAB console.
I have access to the source of the library and most calls are done through printf (stdout) and fprintf (stderr). Is there a simple way to redirect these calls to the MATLAB command window? If not, is there a way to redirect them to any kind of console at all?
Thanks, ~Chris

Antworten (0)

Kategorien

Mehr zu MATLAB Compiler finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by