How do I clear the output from a list of .mlx files to reduce their size?

18 次查看(过去 30 天)
Live Editor files with their output figures etc. are much larger than those without.
If I have a list of .mlx files, and want to clear their output, I can open them one at a time, clear their output and save them.
Is there a better way to do that, maybe a script that can run on the list of files?
  1 个评论
Ahmet Sacan
Ahmet Sacan 2024-12-14
See similar question and my suggestion at: https://www.mathworks.com/matlabcentral/answers/475826-clear-all-output-code#comment_3319235

请先登录,再进行评论。

回答(1 个)

Harsha Priya Daggubati
Hi,
As of now, we dont have any way to clear all the outputs from Live Editor programmatically, as we cannot get access to "Clear All Outputs" button in MATLAB Toolstrip.

类别

Help CenterFile Exchange 中查找有关 Environment and Settings 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by