Filter löschen
Filter löschen

dialog box imput variables

8 Ansichten (letzte 30 Tage)
franco otaola
franco otaola am 7 Feb. 2017
Kommentiert: franco otaola am 7 Feb. 2017
hello, i have done a code that some people are going to use and because sometimes they run it without looking and the code needs to be used for different measures where the have a different value for a variable. e.g: file 1 a=1 and in file 2 a=1 and file 3 a=2. i would like that when you press to run the code the matlab will show a dialog box asking for the value of ´a´ . is it possible to put something like that in matlab? thanks

Akzeptierte Antwort

Stephen23
Stephen23 am 7 Feb. 2017
Bearbeitet: Stephen23 am 7 Feb. 2017
C = inputdlg({'please enter a:'});
a = str2double(C{1});
  1 Kommentar
franco otaola
franco otaola am 7 Feb. 2017
you were too fast ahahahaah i was coming to delete the question because i found the asnwer and you aswered before :D. eighter way, thanks a lot!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by