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 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!