Running MATLAB in background
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Prakash Kannan Ganesan
el 28 de En. de 2019
Editada: Prakash Kannan Ganesan
el 31 de En. de 2019
I need to run matlab in background for atleast more than one day ( Matlab was integrated with another software ). But everytime the matlab window pops out and iam unable to use my computer normally as everytime the window pops out the other action is affected.
0 comentarios
Respuesta aceptada
Walter Roberson
el 28 de En. de 2019
You might be able to run MATLAB with the -nodesktop or -nodisplay option.
The behaviour you describe happens when your code uses figure() to create new figures or figure(existing_handle) to activate a particular figure to make it the default figure for following graphics commands. It would be best if you rewrote your code to create figures and graphics objects less often, and to instead re-use graphics objects and to make sure to always parent your graphics operations https://www.mathworks.com/matlabcentral/answers/22208-show-figure#comment_48401
MATLAB is able to create some graphics without an attached graphics display, but it is common to need more than it is able to provide in that mode. Sometimes graphics can be rewritten in terms of inserting lines and shapes using computer vision toolbox to write into buffers, but that can be pretty inconvenient for curves or surfaces. But with the advice about always parenting and doing focus-stealing operations as little as possible, then you can often reduce the number of times that MATLAB pops up the graphics window.
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Startup and Shutdown en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!