Reputation: 4200
When I change the colormap in the MatLab environment to grayscale with the line
colormap gray(256);
a new blank window opens. Semicolon in the end of the line makes no differens.
How can I avoid that?
Upvotes: 1
Views: 1950
Reputation: 272607
colormap
applies to a figure. If you don't specify a figure, then it uses the current figure by default. If there is no current figure, then one gets created (this is the same behaviour that you get for lots of commands, e.g. xlim
).
Upvotes: 2