Histogram Dealing with Two Variables

I am trying to graph a histogram that displays the distribution of L_blue_galaxy/L_blue_MW=10^(-20.8-M)/2.5. So, I need to evaluate for each galaxy the above quantity and then plot the histogram of it for all the galaxies within 20 Mpc (it will be a histogram of the number of galaxies vs L_blue_galaxy/L_blue_MW). This will allow me to evaluate how many galaxies are less luminous or more bright than the Milky Way.
An example of what I am trying to do is attached.

3 个评论

A bit more information would be helpful.
What data do you have? I see three variables: ‘L_blue_galaxy’, ‘L_blue_MW’, and ‘M’.
What variables do you want to plot in the histogram?
I assume L_blue_MW is a constant, and L_blue_galaxy is a vector, so you basically have
intensityRatios = L_blue_galaxy / L_blue_MW
which gives you the ratio of each galaxy's intensity to the Milky Way's intensity.
I have no idea what the "10^(-20.8-M)/2.5" is for, and why you're setting the intensity ratios equal to that expression. And like Star said, we don't know the value or significance of M perhaps a more descriptive name might help with that).
I assume L_blue_MW is a constant, and L_blue_galaxy is a vector, so you basically have
intensityRatios = L_blue_galaxy / L_blue_MW
which gives you the ratio of each galaxy's intensity to the Milky Way's intensity.
I have no idea what the "10^(-20.8-M)/2.5" is for, and why you're setting the intensity ratios equal to that expression. And like Star said, we don't know the value or significance of M perhaps a more descriptive name might help with that).

请先登录,再进行评论。

回答(0 个)

类别

标签

Community Treasure Hunt

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

Start Hunting!

Translated by