Hello,
I have a formulate and use seperate value for each calculation. I would like to enter the value manually.
An example:
formulate = 3*pi*r^2*4*T
Here I want to enter T value manually for each calculation.
Which code example should I use for this ?

2 件のコメント

jonas
jonas 2018 年 6 月 29 日
You mean that you want the script to stop and ask for user input?
Murat Kocaman
Murat Kocaman 2018 年 6 月 29 日
Yes I think so.

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

 採用された回答

jonas
jonas 2018 年 6 月 29 日

0 投票

There are some different options. If you want to enter the value in the command window:
T = input('Enter value of T')
or if you want a dialog box:
V = inputdlg('Enter value of T')
T = str2num(V{1})

その他の回答 (0 件)

カテゴリ

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

タグ

質問済み:

2018 年 6 月 29 日

回答済み:

2018 年 6 月 29 日

Community Treasure Hunt

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

Start Hunting!

Translated by