Home > Mobile >  What is the matlab command for docking the figure inside the editor
What is the matlab command for docking the figure inside the editor

Time:11-20

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.

CodePudding user response:

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.

  • Related