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!