필터 지우기
필터 지우기

X Y scatter data Color Contour of Frequency Distribution spatially in 125km circle

조회 수: 1 (최근 30일)
Utsav
Utsav 2016년 2월 4일
댓글: Utsav 2016년 2월 12일
I have X-Y scatter data. I plotted Frequency Distribution spatially with 5km box resolution, I need values outside 125km radius to show white instead of 0. I understand NaN is the option. How do I implement NaN selectively through code
my code is
binmin = -125; binmax = 125; binwidth = 5;
xbin = 1 + floor((X(:) - binmin) / binwidth);
ybin = 1 + floor((Y(:) - binmin) / binwidth);
nbins = ceil((binmax - binmin) / binwidth);
counts = accumarray([xbin, ybin], 1, [nbins, nbins]);
figure(1)
surf(counts,'EdgeColor','none','LineStyle','none');
view(-270,-90);
any help shall be appreciated

답변 (1개)

Walter Roberson
Walter Roberson 2016년 2월 4일
  댓글 수: 1
Utsav
Utsav 2016년 2월 12일
Thats okay, circlePixels will produce an array of 0 and 1. \ But I have some embedded zero within the circle of 1 too as well as outside How to selectively filter out the outside zeros.

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

카테고리

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