Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

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

1 Ansicht (letzte 30 Tage)
Austin Brehm
Austin Brehm am 5 Jul. 2018
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
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 Kommentar
Steven Lord
Steven Lord am 5 Jul. 2018
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.

Antworten (1)

Austin Brehm
Austin Brehm am 5 Jul. 2018
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.

Produkte


Version

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by