Info
This question is closed. Reopen it to edit or answer.
Non-Existent Field When Reading Number from GUI
1 view (last 30 days)
Show older comments
I'm trying to create a GUI that will read in a value that the user inputs. This is what I have inputted for the to read from the GUI:
function Failure_Box_Callback(hObject, eventdata, handles)
r = str2double(get(handles.Failure_Box,'String'));
The user is prompted to input a value in the Failure Box in the "Edit Text" format in the GUI I have created. There are equations that use r as an input. I get the error "Reference to non-existent field 'Failure_Box'."
This is clearly being defined, but it is not reading it in that format. What can I do to fix this?
0 Comments
Answers (1)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!