Density plot of clusters

조회 수: 5 (최근 30일)
Sajjad Ahmad Khan
Sajjad Ahmad Khan 2021년 6월 28일
답변: Sajjad Ahmad Khan 2021년 7월 2일
I have a localization plot as shown in the figure-1. The size of X & Y vectors are (6106,1) each. I want to make a density plot (as shown in the figure-2) in which the color map varies with cluster of points (yellow regions in figure-1). i.e. the clusters should be shown differently than the sparsely scattered points. Thanks!
  댓글 수: 3
Sajjad Ahmad Khan
Sajjad Ahmad Khan 2021년 7월 1일
@Asvin Kumar thanks for your answer. Well I managed to plot the localizations using histcounts2 function followed by apply Gaussian filter and then plotting using imagesc function. See the plot in the 1st figure, whereas 2nd figure is binscatter.
Sajjad Ahmad Khan
Sajjad Ahmad Khan 2021년 7월 1일
@Asvin Kumar Here is the binscatter plot.

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

채택된 답변

Sajjad Ahmad Khan
Sajjad Ahmad Khan 2021년 7월 2일
The points can be plotted using histcounts2 function followed by applying Gaussian filter and then plotting using imagesc function.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Scatter Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by