フィルターのクリア

another question has come up about hist3()

4 ビュー (過去 30 日間)
jgillis16
jgillis16 2015 年 6 月 26 日
コメント済み: Star Strider 2015 年 7 月 5 日
OK. So, I have access to the statistics toolbox now. And, I was wondering how I would go about plotting the hist3 function for the same code from:
Because [N,C]=hist3(...) doesn't actually display a plot, and having something along the lines of the Seamount:Data Point Density Histogram and Intensity plot (link is below) would be extremely helpful.
Thanks again!

採用された回答

Star Strider
Star Strider 2015 年 6 月 26 日
This works, but I’m not terribly happy with the result:
[N,C] = hist3([C12 S12], {0:359; -89:89});
figure(1)
bar3(N)
grid on
xtk = linspace(-89,89, 11);
set(gca, 'XTick',xtk+90,'XTickLabel',xtk)
xlabel('DEC (-89 +89)')
ylabel('RA (1 360)')
axis tight
  11 件のコメント
jgillis16
jgillis16 2015 年 7 月 5 日
OK. Could you perhaps attach the plot you produce with the updated code provided?
Star Strider
Star Strider 2015 年 7 月 5 日
I would, but since there are discrepancies between the corresponding values in the two files, it doesn’t make any sense. That’s the reason I didn’t post it here. If you look though your files to be sure the declinations and right-ascensions all span the same ranges (-89 +89 and 0 359 as appropriate), I will run my code and plot it.
I posted an Answer to your other Question. It tangentially relates to this one.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by