How may i resize a promt window?

2 ビュー (過去 30 日間)
Pietro Fiondella
Pietro Fiondella 2022 年 6 月 29 日
コメント済み: Jan 2022 年 7 月 3 日
prompt = {'Enter matrix size:','Enter colormap name:'};
dlgtitle = 'INPUT';
dims = [1 35];
definput = {'20','hsv'};
opts.Resize='on';
I want to create an input prompt tha is resizable but even if i digit " opts.Resize='on' i am not able to resize the dialog box.
Wich is my error?
  10 件のコメント
Voss
Voss 2022 年 7 月 2 日
If you have 3 prompts, then you have to have at least 3 default answers:
prompt = {'Enter the number of users:','Enter the name of your city:','Enter the nominal power [kWh]'};
dlgtitle = 'Details';
dims = [1 35];
% definput = {'20','hsv'};
definput = {'20','NYC','1000'};
opts.Resize='on';
% actually create the dialog box:
answers = inputdlg(prompt,dlgtitle,dims,definput,opts);
Jan
Jan 2022 年 7 月 3 日
@Pietro Fiondella: You still did not mention, what you want to resize. Your code does not create anything resizable. Is Voss' assumption correct, that you call inputdlg?

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

採用された回答

AMIT POTE
AMIT POTE 2022 年 7 月 3 日
You can go through the following documentation to read more about input dialog box

その他の回答 (0 件)

カテゴリ

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

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by