Dear all,
I have this code and I don´t know how change the size of prompt. I think, that I use options.Resize='on' so it will be all right, but it didn´t work.
prompt = {'Napište hodnotu p:'};
dlg_title = 'Vytvoření vlastního modelu';
num_lines = 1;
p = 0.5;
defaultanswer = {'0.5'};
options.Resize='on';
options.WindowStyle='normal';
options.Interpreter='tex';
answer=inputdlg(prompt,dlg_title,num_lines,defaultanswer,options);
Thank you for your answers.

1 件のコメント

Geoff Hayes
Geoff Hayes 2015 年 2 月 1 日
Veronica - please clarify what you mean by it didn't work. What were you trying to achieve, and what actually happened? Are you trying to make the text in the dialog larger, or just trying to allow the user to resize the input dialog?

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

 採用された回答

per isakson
per isakson 2015 年 2 月 1 日
編集済み: per isakson 2015 年 2 月 1 日

2 投票

"Resize='on'" &nbsp enables the user to resize the dialog figure.
"change the size of prompt." &nbsp See the screen clip below

3 件のコメント

Veronika
Veronika 2015 年 2 月 2 日
Thank you for your answer. I would like to prompt window was so great that text (dlg_title = 'Vytvoření vlastního modelu') was seen. Like this:
But I do not know if it's possible.
per isakson
per isakson 2015 年 2 月 2 日
The width can be controlled. Doc says
If num_lines is an array, it must be size m-by-2, where m is
the number of prompts on the dialog box. [...]The second column
specifies the width of the field in characters.
Example
x = inputdlg('Enter space-separated numbers:', 'Sample', [1 50]);
The second column is the "50". Try this example and replace "50" by "100"
Veronika
Veronika 2015 年 2 月 4 日
Thank you, that really help.

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

その他の回答 (0 件)

カテゴリ

タグ

質問済み:

2015 年 2 月 1 日

コメント済み:

2015 年 2 月 4 日

Community Treasure Hunt

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

Start Hunting!

Translated by