How to plot min,max and mean values from a data set?

I have a data set of min,max and mean values at the same time instant.
For eg: min=1,max=2, mean =1.5 @ 00:00:00
min=2,max=3,mean=2.5 @ 01:00:00
and so on..(more than 8,000 dataset)
I want to create a line plot using all three (min,max,mean) values in one line and not 3 different line plots.
Any one can help?

댓글 수: 4

How your data are stored?
i am not storing them, I am reading them from a text file
Azzi Abdelmalek
Azzi Abdelmalek 2013년 1월 6일
편집: Azzi Abdelmalek 2013년 1월 6일
After reading them from a text file, how your values are stored? Is it a matrix 8000x3?
Hamza
Hamza 2013년 1월 6일
편집: Hamza 2013년 1월 6일
I am storing them as arrays separately. min,max and mean all are separately stored. (8000x1)

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

답변 (1개)

Azzi Abdelmalek
Azzi Abdelmalek 2013년 1월 6일
a=rand(10,3) % your data
x=a';
y=x(:)
plot(y)

댓글 수: 6

If they are separated
a=[v1 v2 v3]
x=a';
y=x(:)
plot(y)
I think in this 'y' is 3 different values at 3 different intervals?
Do you want to plot min1 max1 mean1 min2 max2 mean2 ...?
Azzi Abdelmalek
Azzi Abdelmalek 2013년 1월 6일
편집: Azzi Abdelmalek 2013년 1월 6일
Type hold off before testing a code
yes i would like something like min1 max1 mean1 min2 max2 mean2 ...
Azzi Abdelmalek
Azzi Abdelmalek 2013년 1월 6일
편집: Azzi Abdelmalek 2013년 1월 6일
That's what my above comment is doing. V1 v2 and v3 are column vector representing min max and mean

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

카테고리

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

질문:

2013년 1월 6일

Community Treasure Hunt

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

Start Hunting!

Translated by