What is the purpose of "inputdlg"?

7 ビュー (過去 30 日間)
Daesik ?
Daesik ? 2011 年 7 月 22 日
[EDIT: 20110722 11:30 CDT - reformat - WDR]
I'm understanding a MATLAB code starting with following lines.
dlgtitle = 'parameter ';
no = 1;
prompt = {'a', 'b'};
value = {'1', '2'};
answer = inputdlg(prompt, dlgtitle, no, value, 'on');
answer_str = char(answer);
c = str2num(answer_str(1,:));
d = str2num(answer_str(2,:));
However, I'm not familliar with "inputdlg".
Is there someone who can explain the meaning of the program line by line, and the purpose of "inputdlg"?

回答 (2 件)

Gerd
Gerd 2011 年 7 月 22 日
help inputdlg
The command is used to get an input from the user.

Robert Cumming
Robert Cumming 2011 年 7 月 22 日
also - step through the code line by line to understand whats its doing - use the help to look at the other commands.

カテゴリ

Help Center および File ExchangeScope Variables and Generate Names についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by