필터 지우기
필터 지우기

how to plot scattered points on 2D graph

조회 수: 86 (최근 30일)
BV
BV 2013년 4월 29일
I have set of centroid values (horizontal and vertical) for an image. I want to plot these points on a 2D graph. I am not looking for a line or curve plot. Can someone help me in this?

답변 (2개)

Amith Kamath
Amith Kamath 2013년 5월 17일
Does http://www.mathworks.com/help/matlab/ref/scatter.html work? I am assuming your data is a collection of (x,y) pairs, and you want to plot these as points in a 2D plot.
http://www.mathworks.com/help/matlab/stem-and-stair-plots.html has a complete listing of discrete data plots available.

Image Analyst
Image Analyst 2013년 5월 17일
You can use scatter() or plot(). You don't have to have lines in plot() - you can just use the markers if you want. But you might have to set ydir to 'reverse' if you want the orientation to be the same as your image (basically upside down since images have row 1 at the top and gets larger as it goes down the screen).

카테고리

Help CenterFile Exchange에서 Graph and Network Algorithms에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by