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