Effacer les filtres
Effacer les filtres

How to disable console output

24 vues (au cours des 30 derniers jours)
Robin
Robin le 9 Sep 2021
Réponse apportée : Voss le 18 Déc 2021
I am currently working on a simulation based optimization. The simulation is build as a Simulink-Model which outputs many lines of code each iteration in the console. Is there a way to suppress all console outputs?
I already tried starting matlab using -noFigureWindows. I even made a disp.m file in the used parent folder containing the following line
function thisdoesnothing (varargin)
This did cancel around 30% of the console outputs but not all of them. Any ideas?
And evalc seems to be no possible solution because i start matlab from java (using eclipse) where i run 2 scripts which build and then use the Simulink-Model.

Réponses (1)

Voss
Voss le 18 Déc 2021
If outputs are printing to the command window because of lines of code without semi-colons on the end, you can suppress those outputs by adding a semi-colon to the end of the line.

Catégories

En savoir plus sur Startup and Shutdown dans Help Center et File Exchange

Produits


Version

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by