필터 지우기
필터 지우기

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 CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by