Change the numeric class label of confusion matrix to string
11 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Elysi Cochin
am 15 Sep. 2022
Beantwortet: RAGHUNATHRAJU DASHARATHA
am 20 Sep. 2022
How to change the numeric class label (1, 2, 3... on the xlabel and ylabel) of a confusion matrix to string, when using
confusionchart(trueLabels,predictedLabels)
and
plotconfusion(T,Y)
0 Kommentare
Akzeptierte Antwort
RAGHUNATHRAJU DASHARATHA
am 20 Sep. 2022
As per my understanding you want to change the numeric class label to string class label for confusionchart
I would like to demonstrate it using below example
a= ones(10);
b=confusionchart(a);
%%Change to String classlabel
a= ones(10);
b=confusionchart(a);
c={'a';'b';'c';'d';'e';'f';'g';'h';'i';'j'}
b=confusionchart(a,c);
For your further reference kindly go through the link
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Numeric Types 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!