Skip to content

close

Close one or more figures.

close
close(h)
close all

Without arguments, closes the current figure. With a figure handle or number, closes that figure. With 'all', closes every open figure.

close
close(2)
close all
  • figure — Create or activate a chart sheet (figure window).
  • clf — Clear the current figure.