change tick values heat map
Show older comments
I want to set ticks to my heat map figure. I don't find any options to do it. It has automatically set it with numbers. also I want to add subscripts to the values inside the boxes.

Accepted Answer
More Answers (1)
cdata = rand(3,3);
h = heatmap(cdata);
h.XData = ["A", "B", "C"];
h.YData = ["A_1", "B_1", "C_1"];
3 Comments
Roja Eliza
on 30 Jun 2022
Chunru
on 30 Jun 2022
Can you explain what you want exactly?
Roja Eliza
on 30 Jun 2022
Categories
Find more on Data Distribution Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


