Effacer les filtres
Effacer les filtres

another question has come up about hist3()

4 vues (au cours des 30 derniers jours)
jgillis16
jgillis16 le 26 Juin 2015
Commenté : Star Strider le 5 Juil 2015
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!

Réponse acceptée

Star Strider
Star Strider le 26 Juin 2015
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 commentaires
jgillis16
jgillis16 le 5 Juil 2015
OK. Could you perhaps attach the plot you produce with the updated code provided?
Star Strider
Star Strider le 5 Juil 2015
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.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Get Started with MATLAB dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by