How does the Matlab Compiler 'logfile' option handle the file?

7 vues (au cours des 30 derniers jours)
David Perron
David Perron le 15 Juin 2020
Commenté : David Perron le 2 Fév 2021
when using the command:
mcc -R '-logfile,Log.txt' Main.m
It seems that information is added to the Log.txt file every time an fprintf() or disp() command is run. Does this mean that the file is opened, written to, and closed for each command?

Réponses (1)

Puru Kathuria
Puru Kathuria le 2 Fév 2021
Yes, it captures everything from the command window and saves the resulting log to the mentioned log file.
For each execution where logging is enabled, the underlying operation performs opening, writing and closing the log file.
  1 commentaire
David Perron
David Perron le 2 Fév 2021
how do you disable logging for specific operations?

Connectez-vous pour commenter.

Catégories

En savoir plus sur MATLAB Compiler dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by