How to access one of the elements in the cell array in GUI
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hello,
I am having trouble to access the one single element out of the cell array. I am not getting an idea how to access.
Here is the code i have wriiten where in some data gets stored in the cell array. I have not wriiten for accessing.
function Popup_Vehicleline_Callback(hObject, eventdata, handles)
% hObject handle to Popup_Vehicleline (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
contents = cellstr(get(hObject,'String')) %returns Popup_Vehicleline contents as cell array
contents{get(hObject,'Value')};
handles.copy.select_vehicleline= get(hObject,'String')
guidata(hObject, handles);
Thanks for the help in advance!
Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!