I have a third-party DLL that prints to stdout and stderr. How do I view this in MATLAB?
2 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!