I want to add a color dimension to my plot in matlab, based on values 0:100 and a colorscale.
How exaclty do I do this?
I know with scatter
you can add a color dimension - but then the lines cannot be connected. I know with plot
you can add one color, but not for every point.
x=1:100;
y=randi(100,1);
c=fliplr(1:100);
plot_with_color(x,y,c) %what is this function?
Thank you, I just couldn't find this with google