how to remove/kill the figure produced with colormap

14 Ansichten (letzte 30 Tage)
Sim
Sim am 30 Aug. 2022
Kommentiert: Sim am 30 Aug. 2022
how to remove/kill the figure produced with colormap
colormap('parula')

Akzeptierte Antwort

Mike Croucher
Mike Croucher am 30 Aug. 2022
If the colormap is the most recent command you've executed, it will be the current figure. As such, you can use
delete(gcf)
Where gcf stands for get current figure
  1 Kommentar
Sim
Sim am 30 Aug. 2022
OK thanks :-) I thought there could be some command inside colomap like
colormap('parula','visible','off')

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Colormaps finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by