To resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016
I'm trying to write a GUI which takes values from four input boxes and performs a calculation then sends the calculated values to four separate static text boxes. I am able to read the information from the input boxes fine and perform the calculation. The problem comes when I try and get the m file to set the values of the four static text boxes using
I get an error saying "Reference to non-existent field 'output_pump_freq'.
This only happens when I run the program without debugging it. When I debug just before and run through these steps then the code works fine. It then works whenever I try to run this afterwards so long as I don't close the GUI. When I close the GUI the same problem occurs until I have run the program in debug mode. Have I not defined something properly?
No products are associated with this question.
"This only happens when I run the program without debugging it." Did you double click the .fig file in Windows Explorer to run it? If that is the case, the handles of the GUI is not properly initialized. Try to run the corresponding .m file for the GUI directly.