Is it possible to show point id in figure
9 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
When we imported the data in Matlab as matrix with (point id, x,y) data is include coordinates. How to show point id's in figure? is that possible? thanks
3 Kommentare
Mahdi
am 2 Apr. 2013
Glad I was of help :) Please "accept" the answer so that other contributors don't look at the post.
Akzeptierte Antwort
Mahdi
am 2 Apr. 2013
hold on
% Get the values from the matrix
point_id=Matrix1(:,1);
x=Matrix1(:,2);
y=Matrix1(:,3);
% Set the text to show up
for i=1:length(x)
text(x(i),y(i), point_id)
end
Note that you can also do this without redefining the values again. I just did it for clarity.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Annotations finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!