help with plotting 3 data series

1 回表示 (過去 30 日間)
Jim O'Doherty
Jim O'Doherty 2013 年 8 月 19 日
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

採用された回答

Azzi Abdelmalek
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)
  1 件のコメント
Jim O'Doherty
Jim O'Doherty 2013 年 8 月 19 日
Thank you, this is exactly what I needed
Jim

サインインしてコメントする。

その他の回答 (0 件)

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by