Steeven
Steeven

Reputation: 4200

When using the Colormap command a new window opens

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

Answers (1)

Oliver Charlesworth
Oliver Charlesworth

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

Related Questions