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

1 次查看(过去 30 天)
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!

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Whos 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by