data=get(handles.uitableName,'Data') If we do this, it extract all the data from table.Is there any way that i can extract selected data (highlighted) only?
1 次查看(过去 30 天)
显示 更早的评论
data=get(handles.uitableName,'Data') If we do this, it extract all the data from table.Is there any way that i can extract selected data (highlighted) only?
0 个评论
回答(1 个)
Joseph Cheng
2014-9-16
with a combination of the data you extracted and
table = findjobj(handles.uitable1);
row = table.getComponent(0).getComponent(0).getSelectedRows+1;
column = table.getComponent(0).getComponent(0).getSelectedColumns+1;
you can get the the highlighted data. I do not know if the selected data is stored inside the handle.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Migrate GUIDE Apps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!