To clear plots in Matlab, you can use the clf
(clear figure) command. This command will clear the current figure window and its contents.
To clear all figures at once, you can use the close all
command. This will close all figure windows, including any that are hidden or minimized.
Here's an example of how to use clf
:
main.m77 chars8 lines
And here's an example of how to use close all
:
main.m173 chars14 lines
gistlibby LogSnag