How to generate colormap for specific matrix?
Show older comments
I have matrix with values and corresponding index number or class number. I want to generate a colormap based on the values of the matrix not the on index number. I have attached a file, where first column indicates values and 2nd column is class number. I am able to do it based on the class number. But, I want to generate a colomap based on the values provided in 1st column in myfile. Means if these values [ 315.2184 315.828 323.7528 323.9052 338.3832 ] are present in an array it will be red color and so on.
Please suggest me as I am unable to do that. Thank you.
Accepted Answer
More Answers (0)
Categories
Find more on Color and Styling in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!