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

1 visualización (últimos 30 días)
ABHAY K K
ABHAY K K el 13 de Feb. de 2019
Comentada: Stephen23 el 13 de Feb. de 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!

Respuestas (0)

Categorías

Más información sobre Programming en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by