Hot can I redirect mex output to stderr?
2 views (last 30 days)
Show older comments
Christoph
on 18 Dec 2014
Commented: Titus Edelhofer
on 18 Dec 2014
I have compiled my script with deploytool.
I try to capture the output of fprintf(1,...) in a mymex.exe > output.txt. This does not work, output comes onto the console.
0 Comments
Accepted Answer
Titus Edelhofer
on 18 Dec 2014
Hi Christoph,
at the bottom of deploytool you should have "Additional Runtime Settings" where you can enable "Create log file". Would that help?
Titus
2 Comments
Titus Edelhofer
on 18 Dec 2014
What about using diary?
doc diary
Use e.g. time stamp or some input parameter to create different file names ...
Titus
More Answers (0)
See Also
Categories
Find more on MATLAB Compiler in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!