How can I select multiple points using the Data Cursor while the 'DisplayStyle' is either 'off' or 'window'?

14 ビュー (過去 30 日間)
Mehran Yarahmadian
Mehran Yarahmadian 2015 年 10 月 26 日
編集済み: Berk Bural 2020 年 12 月 23 日
I have a Node(n,3) matrix of n nodes with x,y,z coordinates in each column and a Surf(m,3) matrix of m triangles which each row elements are 3 indexed nodes forming that row triangle. I'm showing the shape formed from mentioned nodes and triangles by functions either patch('Faces',Surf,'Vertices',Node) or trisurf(Surf,Node(:,1),Node(:,2),Node(:,3)). I want to save coordinates of many of nodes in a matrix or cell array by selecting them manually. When I use datacursormode, data-tips showing on figure are bothering because I'm selecting lots of nodes very close to each other. I couldn't find any way to set 'DisplayStyle' on 'off' and when I set it on 'window', I can't select multiple points. Data Brushing functions cannot be used with these two plot types, patch and trisurf. Any idea how I can do that?

回答 (1 件)

Ramesh Bala
Ramesh Bala 2019 年 10 月 1 日
Use Shift + Data cursor and select the figure made with coords.
  2 件のコメント
Ramesh Bala
Ramesh Bala 2019 年 10 月 1 日
button = 1;
while sum(button) <=1 % read ginputs until a mouse right-button occurs
[x(j),y(j),button] = ginput(1);
end
Berk Bural
Berk Bural 2020 年 12 月 23 日
編集済み: Berk Bural 2020 年 12 月 23 日
I have the same problem with data tips, can you elaborate what you mean here?

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeVisual Exploration についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by