I have a three column matrix [year, month, data] and I'm trying to make a plot that compares monthly trends in the data across years. I've tried to do this using plot3, mesh, and ribbon.
Plot3(year, month, data) gets me pretty close to what I need, but the data is all connected even when it jumps from one year to the next, so what I get looks a lot like scribbling instead of one nice line for each year.
I thought using mesh or ribbon might fix this, but I'm stuck because the format for mesh is (X,Y,Z) where Z is a matrix, and if I treat my three columns separately, I'm left with only a vector for Z.
Any help is greatly appreciated!