Azzera filtri
Azzera filtri

To Enter a Value in a Formulate

2 visualizzazioni (ultimi 30 giorni)
Murat Kocaman
Murat Kocaman il 29 Giu 2018
Risposto: jonas il 29 Giu 2018
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 Commenti
jonas
jonas il 29 Giu 2018
You mean that you want the script to stop and ask for user input?
Murat Kocaman
Murat Kocaman il 29 Giu 2018
Yes I think so.

Accedi per commentare.

Risposta accettata

jonas
jonas il 29 Giu 2018
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})

Più risposte (0)

Categorie

Scopri di più su Get Started with MATLAB in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by