-1

To keep it short, I'm developing a software tool where I would like to import parameters into GUI from .m-files, but I can't find how to import the parameters. I'm using iugetfile to 'reach it' but how do I insert the parameter values?

If I open the file in MATLAB (command window), then I get the parameters in the workspace. Is there an easy way to read the parameters into GUI to be able to use them in functions there?

GeCCo
  • 1
  • 1

1 Answers1

0

The way to write data into gui is using set. For example: set(handles.,'String','content'). You can see examples of writing and reading values from here: (mathworks link)

I would use .mat instead .m if you need to read parameter values.

elachell
  • 2,527
  • 1
  • 26
  • 25