Azzera filtri
Azzera filtri

another question has come up about hist3()

4 visualizzazioni (ultimi 30 giorni)
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!

Risposta accettata

Star Strider
Star Strider il 26 Giu 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 Commenti
jgillis16
jgillis16 il 5 Lug 2015
OK. Could you perhaps attach the plot you produce with the updated code provided?
Star Strider
Star Strider il 5 Lug 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.

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Get Started with MATLAB in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by