How can I select number with dialog box?

I have this code. But I want to select with a dialog box the number. I don't want to enter in the code and change the number. So, for example I would like to use this command:
dati = inputdlg({'**************** Insert number ****************'})
dati_1 = dati{1};
How can I do it?

 採用された回答

nl2605
nl2605 2014 年 3 月 20 日

0 投票

You have to use str2num to change entered value to number. You can use that number then.

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeEntering Commands についてさらに検索

タグ

質問済み:

2014 年 3 月 20 日

編集済み:

2014 年 3 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by