MATLAB Answers

Open figure in new window instead of next to editor using figure object

30 views (last 30 days)
I haven't been able to work out how I can force Matlab to open a figure in a new window using the figure object (using online version at the moment:
The following answer only seems to make it visible or invisible but not opening in a new window:
% Opens next to editor (Without taking the size parameters):
f1.Name = 'FFT-Test';
% Opens in new window:
figure('Name', 'FFT-Test','position',[150,0,100,650])
Any ideas?
To clarify here two screenshots:
(as you can see, if I want more than one plot in the same figure, I can make the figure window a lot bigger and see more detail, if it opens in a separate window)

Accepted Answer

Fangjun Jiang
Fangjun Jiang on 25 Mar 2021
close all;
f=figure('Name', 'FFT-Test','position',[150,0,1000,650])

More Answers (0)

Community Treasure Hunt

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

Start Hunting!