help with plotting 3 data series
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi,
I've got some data like this:
data=[1 76 67 76
2 61 53 54
3 63 54 58
4 74 63 72
5 64 67 69
6 50 51 50
7 62 58 91
8 88 62 80
9 45 37 54
10 55 51 63
11 41 31 42
12 47 52 54
13 27 21 15
14 34 23 30
15 31 23 30];
the first column is the x-axis and the other three are results from repeating an experiment on 15 samples 3 times.
I'd like to be able to plot the 3 series as normal, but to be able to connect the data points vertically (rather than in the data series)
Would anyone have any tips how to achieve this? I could simply use boxplot but I don't need the statistics side
Cheers, Jim
댓글 수: 0
채택된 답변
Azzi Abdelmalek
2013년 8월 19일
x=data(:,1);
y=data(:,2:4);
plot(x,y)
a=sort(y');
b=repmat(x',3,1)
hold on
plot(b,a)
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!