Show live output from API
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I'm executing an .m script from C++ API (matlabEval). Unfortunately, I can't see the output until the script (e.g. one that calls fmincon) finishes, which can be quite a while. diary or the -log command line param don't do the trick. Guys, you must do something about this. If I'm connected to a matlab session through the API, which modifies the workspace, and commands can't be executed, there's no reason that I won't see a live output in the command window like executing the command from there.
0 Commenti
Risposte (1)
Image Analyst
il 6 Lug 2014
Call "drawnow" whenever you want the display to update/refresh. Sometimes it gets into such an intensive loop that it never gets time to update the display unless you force it to with drawnow.
2 Commenti
Image Analyst
il 7 Lug 2014
Well, I don't know. I have not run a C++ program that runs MATLAB mex file that does stuff in a console window.
Vedere anche
Categorie
Scopri di più su C Shared Library Integration in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!