How to make figure window change size
1,356 ビュー (過去 30 日間)
古いコメントを表示
Oladunjoye Awoga
2017 年 1 月 11 日
コメント済み: Chukwuemeka Nnanna
2024 年 11 月 15 日
The figure window stopped responding to commands. The figure window size does not change when I try to resize it using set(gcf, [ four values]) which I have been using for sometime now. I have entered all the usual commands I normally use (from the command window) but it has no effects. It seems the window size is fixed so I need to make flexible. This started a day ago. How can I make it work again?
I use R2016a.
Thanks in advance.
0 件のコメント
採用された回答
Jordan Ross
2017 年 1 月 13 日
編集済み: MathWorks Support Team
2021 年 3 月 17 日
Hello,
As I understand, you are trying to resize your window using the following command:
>> set(gcf, [ four values])
However, you forgot to specify the name of the ‘Position’ property. For example, here’s how to set the figure to be 500 pixels by 400 pixels:
>> set(gcf, 'Position', [100, 100, 500, 400])
You can also save a handle to your figure and set the Position property using dot notation:
f = figure;
f.Position = [100 100 550 400];
6 件のコメント
Savannah Downing
2022 年 2 月 15 日
@Grzegorz Lippe did you ever figure this out? i am having the same issue and can't find info on how to address the whole window size
Chukwuemeka Nnanna
2024 年 11 月 15 日
Thanks so much, been looking for how to modify the size of a figure window via MATLAB code and this just solved that for me. Many thanks!
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Interactive Control and Callbacks についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!