confusion matrix with string greek letters like alpha and beta
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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
3 Kommentare
Antworten (2)
Rik
am 16 Sep. 2022
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 Kommentar
Walter Roberson
am 17 Sep. 2022
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
am 19 Sep. 2022
2 Kommentare
Walter Roberson
am 19 Sep. 2022
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";
Siehe auch
Kategorien
Mehr zu Labels and Annotations finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!