How to access one of the elements in the cell array in GUI

1 vue (au cours des 30 derniers jours)
ABHAY K K
ABHAY K K le 13 Fév 2019
Commenté : Stephen23 le 13 Fév 2019
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!

Réponses (0)

Catégories

En savoir plus sur Programming dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by