What's the best way to plot overlapping and open ranges?

3 visualizaciones (últimos 30 días)
Megna Hari
Megna Hari el 22 de Ag. de 2014
Respondida: Mikhail el 22 de Ag. de 2014
I have a list of numbers and I have a list of ranges. If the smallest number is 600 and the maximum is 94223654 and there are 1872531 numbers (and a list of 145 ranges where some overlap), how do I represent where the values in the list of numbers overlap and where they match up with the ranges and how the ranges overlap? Should I use stem to plot it? I'm not sure how to go about it. Any advice would be helpful! Thanks

Respuestas (2)

Mikhail
Mikhail el 22 de Ag. de 2014
Editada: Mikhail el 22 de Ag. de 2014
Can you give some example (with like 10 numbers and 4 ranges)? It's difficult to understand what are you meaning
  1 comentario
Megna Hari
Megna Hari el 22 de Ag. de 2014
Pretend the numbers are [1 3 4 5 8 8 9 10 11 13] and the range variable is 2 columns with mins and maxs as follows: range(:,1)=[1 3 7 11] and range(:,2)=[5 6 10 14]
so sometimes the ranges overlap and sometimes the numbers repeat. Is there a good way to plot it (maybe from 1 through 14) where one line shows how the numbers are scattered and another line shows how the ranges compare with the numbers (and also shows overlapping sections)?

Iniciar sesión para comentar.


Mikhail
Mikhail el 22 de Ag. de 2014
how the numbers are scattered
n=[1 3 4 5 8 8 9 10 11 13];
x=min(n):(max(n)-min(n))/10:max(n);
hist(n,x)
So you will obtain histogram of how your numbers are scattered.
I don't understand about other stuff you asked

Categorías

Más información sobre Scatter Plots en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by