Info

This question is closed. Reopen it to edit or answer.

Non-Existent Field When Reading Number from GUI

1 view (last 30 days)
Sara Koniecko
Sara Koniecko on 12 Feb 2016
Closed: MATLAB Answer Bot on 20 Aug 2021
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?

Answers (1)

Walter Roberson
Walter Roberson on 12 Feb 2016

Community Treasure Hunt

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

Start Hunting!