Info

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

What does this error mean: Reference to non-existent field 'Dates_L'.

1 view (last 30 days)
It says this line in my code has an error:
Dates_L=handles.Dates_L;
but I used this for other buttons that have values; e.g.
CA=handles.CA;
However, I get the error that Dates_L doesn't exist. All of the methods I've used for this variable are the same as the other variables that work, so I'm not sure what the difference is and why it thinks Dates_L doesn't exist. The code was also working for a few runs and now doesn't work without me changing the code. Any ideas?

Answers (1)

Walter Roberson
Walter Roberson on 11 Nov 2015
  1. you are using GUIDE; and
  2. you do not have a graphics object whose Tag is 'Dates_L'; and
  3. you either did not go through a path in the program that stored Dates_L into handles, or after the program stored Dates_L into handles, you did not use guidata(hObject, handles) to tell MATLAB to update the "master" copy of the handles structure

Tags

Community Treasure Hunt

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

Start Hunting!