dialog box imput variables

8 次查看(过去 30 天)
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

采纳的回答

Stephen23
Stephen23 2017-2-7
编辑:Stephen23 2017-2-7
C = inputdlg({'please enter a:'});
a = str2double(C{1});
  1 个评论
franco otaola
franco otaola 2017-2-7
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!

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by