help with plotting 3 data series
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuesta aceptada
Azzi Abdelmalek
el 19 de Ag. de 2013
x=data(:,1);
y=data(:,2:4);
plot(x,y)
a=sort(y');
b=repmat(x',3,1)
hold on
plot(b,a)
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!