command window refresh in R015b
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Joris Gillis
el 30 de Mzo. de 2016
Comentada: adams13
el 27 de Mzo. de 2024
Dear all,
For our numerical software, we've coupled a C++ library with MATLAB. Every few seconds, that library has some useful output, that we send to the command window (mexPrintf).
We've come to rely on calling drawnow('update') after every print to make sure that the output of the library streams live, line-by-line, into the command window, instead of being buffered (appearing in chunks of a good number of lines at a time).
Now, a user of our software reports that this mechanism stopped working between R2015a, and R2015b. I've checked the release notes but could not find a clue that would explain this.
Any hints for me?
Best regards, Joris Gillis
0 comentarios
Respuesta aceptada
Más respuestas (1)
Jan
el 30 de Mzo. de 2016
A workaround is calling an M-helper function: http://www.mathworks.com/matlabcentral/answers/255615#answer_215636
2 comentarios
Joris Gillis
el 30 de Mzo. de 2016
Editada: Joris Gillis
el 30 de Mzo. de 2016
adams13
el 27 de Mzo. de 2024
Thank you for a nice solution, it works also in 2023. Redraw only the command window is definitely better than all figures with 'drawnow'. However, Matlab R2023b says
'com.mathworks' package and subpackages will be removed in a future release. There is no simple replacement for this.
Any solution for a current version?
Ver también
Categorías
Más información sobre Startup and Shutdown en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!