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

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

답변 (2개)

Mikhail
Mikhail 2014년 8월 22일
편집: Mikhail 2014년 8월 22일

0 개 추천

Can you give some example (with like 10 numbers and 4 ranges)? It's difficult to understand what are you meaning

댓글 수: 1

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)?

댓글을 달려면 로그인하십시오.

Mikhail
Mikhail 2014년 8월 22일

0 개 추천

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

카테고리

도움말 센터File Exchange에서 Scatter Plots에 대해 자세히 알아보기

질문:

2014년 8월 22일

답변:

2014년 8월 22일

Community Treasure Hunt

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

Start Hunting!

Translated by