Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Is it possible to change the parameters of a .m file from a GUI?

조회 수: 1 (최근 30일)
Austin Brehm
Austin Brehm 2018년 7월 5일
마감: MATLAB Answer Bot 2021년 8월 20일
I am trying to change a string variable of a .m file from an input from a GUI. Is this possible? Can you manipulate code from a GUI?
  댓글 수: 1
Steven Lord
Steven Lord 2018년 7월 5일
Are you trying to change the code inside the script, function, or class file itself? Would making the code a function (if it isn't already) and passing the parameter as an input argument when you call the function sufficient? That would be much easier.

답변 (1개)

Austin Brehm
Austin Brehm 2018년 7월 5일
Yes, I am trying to change the code inside the script. So far, I have a GUI that allows the user to browse for a file. I want the script to read the filename that the user chooses in the GUI.

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by