フィルターのクリア

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 Center および File ExchangeScatter Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by