Borrar filtros
Borrar filtros

help with plotting 3 data series

4 visualizaciones (últimos 30 días)
Jim O'Doherty
Jim O'Doherty el 19 de Ag. de 2013
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

Respuesta aceptada

Azzi Abdelmalek
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)
  1 comentario
Jim O'Doherty
Jim O'Doherty el 19 de Ag. de 2013
Thank you, this is exactly what I needed
Jim

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by