how to remove/kill the figure produced with colormap

16 次查看(过去 30 天)
how to remove/kill the figure produced with colormap
colormap('parula')

采纳的回答

Mike Croucher
Mike Croucher 2022-8-30
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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Colormaps 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by