フィルターのクリア

data=get(h​andles.uit​ableName,'​Data') If we do this, it extract all the data from table.Is there any way that i can extract selected data (highlighted) only?

3 ビュー (過去 30 日間)
Taral Shah
Taral Shah 2014 年 9 月 16 日
回答済み: Joseph Cheng 2014 年 9 月 16 日
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 件)

Joseph Cheng
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.

カテゴリ

Help Center および File ExchangeMigrate GUIDE Apps についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by