I am plotting two sets of data onto one plot, and I would like to have lines drawn connecting the different plots when they have the same value.
For a overly simple example:
a = [50:199];
b = [75:224];
i = [1:150];
scatter( i, [a;b] )
I would like a straight line joining dots together than have value 75, a line joining dots that have value 76, etc etc. Ideally the lines would be a different colour to the dots, but they themselves can be the same colour.
(I know in this example it would create a rather unhelpful-looking plot, but as said, this is much simpler than the types of scatters I'm looking at).
I'm quite new to Matlab, so I'm not sure whether this is something that's ridiculously easy or rather complex!