MATLAB: Using custom colour with contourf

colourmapcontourcmapcontourf

Hello,
I would like to use a custom colourmap 'mycmap' with contourf, how can I do this? I looked at previously asked questions and replies, but couldn't find anything which would help.
mycmap is a [64*3] matrix with values between 0 and 1. I tried [C,h]=contourf(dist_range,vel_range,capacity,14,'LineColor',mycmap'); and other ways, but couldn't succeed.

Best Answer

I found the answer. It was simply colormap(mycmap)
Thanks :)