If you want to keep everything as vectors, you will need to turn your array into a table with at least 3 variables. Then create the heatmap using the following syntax.
There is a similar approach for vectors, but in that case, your cdata must be a matrix and not a vector.
If neither approach is producing the results you want, please provide your data (use the paperclip icon to attach it to your post), a description of why it is wrong, along with any error messages you are getting (all the red text).
