I have a listbox1 with different items and when one of these items is selected (e.g project1) this item is used as a field structure name. Therefore the listbox2 is updated with the fieldnames of 'Database.project1', and example is shown below.
function listbox1_Callback(hObject, eventdata, handles)
project1 = get(hObject)
List = fieldnames(Database.(project1));
But this code is giving the next error:
Argument to dynamic structure reference must evaluate to a valid field name.
Any idea about how can be implemented?
Thanks in advance