confusion matrix with string greek letters like alpha and beta
2 次查看(过去 30 天)
显示 更早的评论
I have a string matrix with is supposed to have greek letters.
Example: My matrix contains the abbreviation: B-Glc, but I want it to appear as β-Glc in the matrix and on the axis of the confusion matrix.
I have tried '/beta' but it did not work.
Thnak you
回答(2 个)
Rik
2022-9-16
If you use the actual greek letters, that should work (as long as the function supports all implemented characters):
text(1,1,char(945:969))
axis([0 5 0 2])
1 个评论
Walter Roberson
2022-9-17
Unfortunately, confusionchart does not have any control over interpreter. However if you insert unicode characters into the class labels, the characters will be drawn (if present in the font.)
LuMig
2022-9-19
2 个评论
Walter Roberson
2022-9-19
Why do you cellstr() and then string() ? Why not directly string()?
alpha = string(char(945));
Label1(1,1) = alpha + "-GLu";
Label2(1,1) = alpha + "-MM";
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Labels and Annotations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!