export Data Index to Workspace
1 回表示 (過去 30 日間)
古いコメントを表示
Having a scatter plot, when I click on one of the points, I get some information regarding that point e.g. X-value and Y-value and DataIndex (generated through a customized UpdateFcn). When
UT_points = getCursorInfo(dcm_obj);
a structure is built with fields as "Target" and "Position". How can I add a customized field to this structure e.g. "Data index"?
0 件のコメント
回答 (1 件)
Santosh Gnanasekaran
2019 年 5 月 23 日
plot(XValue,Y Value); %% Plots the data
a = get(gca,'Children');%% Gets the axes related data
xdata = get(a, 'XData'); %% extract the specific data and store it in workspace
ydata = get(a, 'YData'); %% extract the specific data and store it in workspace
close(gcf);
2 件のコメント
Santosh Gnanasekaran
2019 年 5 月 23 日
編集済み: Santosh Gnanasekaran
2019 年 5 月 23 日
Yes, once you store these variables in workspace, you can customise the variables. For more info:
Hope this helps.
参考
カテゴリ
Help Center および File Exchange で Animation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!