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

79 ビュー (過去 30 日間)
David Schneider
David Schneider 2021 年 3 月 24 日
コメント済み: David Schneider 2021 年 3 月 26 日
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: https://matlab.mathworks.com/).
The following answer only seems to make it visible or invisible but not opening in a new window: https://www.mathworks.com/matlabcentral/answers/307121-how-to-force-an-external-figure-in-live-scripts
% Opens next to editor (Without taking the size parameters):
f1=figure;
f1.Name = 'FFT-Test';
f1.Position=[150,0,1000,650];
% 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)
  2 件のコメント
Fangjun Jiang
Fangjun Jiang 2021 年 3 月 24 日
I can't understand what you want
David Schneider
David Schneider 2021 年 3 月 25 日
編集済み: David Schneider 2021 年 3 月 25 日
I have added 2 screenshots to my question, to clarify my problem (you may have to scroll to the right to see the full pictures).

サインインしてコメントする。

採用された回答

Fangjun Jiang
Fangjun Jiang 2021 年 3 月 25 日
%%
close all;
f=figure('Name', 'FFT-Test','position',[150,0,1000,650])
f1=subplot(4,1,1,'Parent',f)
plot(1:10)
f4=subplot(4,1,4,'Parent',f)
plot(rand(10))

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGraphics Performance についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by