How to set the size of warning dialog box?

26 ビュー (過去 30 日間)
Soroush Asarzadeh
Soroush Asarzadeh 2016 年 3 月 24 日
編集済み: Orion 2016 年 3 月 24 日
Hello, Can anybody tell me how can I make a warning dialog box wider? because my title exceeds the box! Thanks in advance. here is my code:
warndlg('Die Ergebnisse können ungenau sein!','Singularitätswarnung')
here is the result:

回答 (1 件)

Orion
Orion 2016 年 3 月 24 日
編集済み: Orion 2016 年 3 月 24 日
Hi,
Just use the handle of the figure.
% get the handle
h = warndlg('Die Ergebnisse können ungenau sein!','Singularitätswarnung');
% change the position (size)
set(h,'Position',[264.0000 672.0000 300.5000 62.2500]) % width of 300.5 instead of 196.5
You can also allow the resizing of the figure
set(h,'Resize','on')

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by