필터 지우기
필터 지우기

dialog box imput variables

조회 수: 8 (최근 30일)
franco otaola
franco otaola 2017년 2월 7일
댓글: franco otaola 2017년 2월 7일
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