how to confusion matrix convert to heatmap style?

조회 수: 16 (최근 30일)
youngwoo Oh
youngwoo Oh 2021년 8월 30일
댓글: youngwoo Oh 2021년 8월 31일
how to confusion matrix convert to heatmap style?
I want to process the CNN-based modulation classification example to evaluate the learning performance in a new environment.
The confusionchart(a,b) function currently in use does not use axis and colorbar, and the color of the placed box is also not customizable.
In this regard, I would appreciate if you could solve it.

채택된 답변

dpb
dpb 2021년 8월 30일
m=[923 4 21 8 4 1 5 5 23 6
5 972 2 0 0 0 0 1 5 15
26 2 892 30 13 8 17 5 4 3
12 4 32 826 24 48 30 12 5 7
5 1 28 24 898 13 14 14 2 1
7 2 28 111 18 801 13 17 0 3
5 0 16 27 3 4 943 1 1 0
9 1 14 13 22 17 3 915 2 4
37 10 4 4 0 1 2 1 931 10
20 39 3 3 0 0 2 1 9 923];
>> classLabels=categorical(...
{'airplane', 'automobile' , 'bird', 'cat', 'deer' ,
'dog', 'frog' , 'horse' , 'ship', 'truck'});
heatmap(classLabels,classLabels,m)
produces
You can experiment about what is modfiable and see if joy ensues...

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Distribution Plots에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by