Not sure if it works for matrices or just for rows. But i thought the same as timgeb. If it doesn't work for matrices just loop over one dimension.
– The MinionJun 05 '14 at 13:55
And just in case you end up in this situation next: [Need to make a 4D plot (3D + Colour)](http://stackoverflow.com/questions/9960456/matlab-need-to-make-a-4d-plot-3d-colour-color)
– SchorschJun 06 '14 at 14:54