필터 지우기
필터 지우기

Visualizing density of points?

조회 수: 17 (최근 30일)
Seyyed Mohammad Saeed Damadi
Seyyed Mohammad Saeed Damadi 2018년 9월 5일
I have a matrix A with dimension of 288*15581 where 288 is the length of time. Hence, I have 15581 curves. when I plot them I have the picture attached.
The problem is I do not know how many point have been gathered at one specific location. Having A, how can I see the density of points? I think heat map can do it but I have no idea.

채택된 답변

jonas
jonas 2018년 9월 5일
  댓글 수: 5
jonas
jonas 2018년 9월 9일
편집: jonas 2018년 9월 9일
Im on phone so cannot try it out myself, but add
hist3(... 'edgecolor', 'none')
to your hist function. You can also try 'interp' instead of 'none'. Second question, try
colormap(flipud(gray))
You could also check out thus link for how to combine hist3 with pcolor
Seyyed Mohammad Saeed Damadi
Seyyed Mohammad Saeed Damadi 2018년 9월 9일
It worked. Thanks.

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

추가 답변 (1개)

KSSV
KSSV 2018년 9월 5일
Read about pcolor, surf.
  댓글 수: 3
KSSV
KSSV 2018년 9월 5일
At a given time..you want to see how many points have certain y value?
Seyyed Mohammad Saeed Damadi
Seyyed Mohammad Saeed Damadi 2018년 9월 5일
Not exactly. I need to know how many points are in a certain small interval of y from zero to one. Then I will be able to count them and compare them with other y's in certain time. The more points, the more color in y-axis. I know how to think of it but I do not know how to implement it. Please do not refer me to a document. To help me, suppose you have a given matrix A including 50 sinusoidal with different frequency sampled at 200 points. How can you show more density of figures between -1 and 1?

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

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by