필터 지우기
필터 지우기

How do I print values to console selected in a plot?

조회 수: 5 (최근 30일)
xone92_
xone92_ 2020년 5월 13일
댓글: xone92_ 2020년 5월 13일
Hello there,
I have a big Data Map in the following structure:
[a1,b1,x1,y1]
[a2,b2,x2,y2]
...
I want to print a figure which displays the a and the b values. When I know select a point (a1,b1) in this figure I want the values x1 and y1 to be printed in the console.
Has anyone a clue how to do it?
Thanks

답변 (1개)

darova
darova 2020년 5월 13일
try this
[~,ix] = pdist2([a1,b1], data(:,1:2));
data(ix,:);
where data(:,1:2) is two first columns (a,b)
and a1,b1 values you want to find
  댓글 수: 1
xone92_
xone92_ 2020년 5월 13일
Hi, thanks for your answer. Its not quite the thing i need i guees. Im looking more for like a script for object handles in figures

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Graphics Object Identification에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by