Thomas Kragerud
Thomas Kragerud

Reputation: 23

What is the matlab command for docking the figure inside the editor

I know it is possible to dock a plot inside the matlab editor instead of constantly getting a pop-up window when plotting a function. However, I am struggling with finding the correct command.

Upvotes: 2

Views: 1080

Answers (1)

Luis Mendo
Luis Mendo

Reputation: 112749

To have the figure docked in the command window, you can use any of these:

  • set(gcf, 'Windowstyle', 'docked') to apply the setting to the current figure;

  • set(f, 'Windowstyle', 'docked') to apply it to a figure with handle f;

  • figure('Windowstyle', 'docked') to create a figure with this setting.

Upvotes: 2

Related Questions