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

8 ビュー (過去 30 日間)
DP
DP 2020 年 6 月 15 日
コメント済み: DP 2021 年 2 月 2 日
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?

回答 (1 件)

Puru Kathuria
Puru Kathuria 2021 年 2 月 2 日
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 件のコメント
DP
DP 2021 年 2 月 2 日
how do you disable logging for specific operations?

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeMATLAB Compiler についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by