Help needed for Plotting Confusion Matrix as given in the sample image

1 view (last 30 days)
How to plot confusion matrix like the given image?
  3 Comments
the cyclist
the cyclist on 10 Aug 2019
Rachana, please explain with a lot more detail what you already have, already know, and what you need help with.
For example ...
Do you already know how to generate the confusion matrix itself, or do you need help geting that? Is that all you need -- just the numbers?
Or do you have the matrix itself, but need help formating it to visually look like the image you have? How close to that image does it need to be? Do you need those colors?
Do you need help with the labels? Does it have to be two levels of labels, like in the image? Etc.
Maybe you see now that you have not really given us enough information to help you.
Rachana Aravind
Rachana Aravind on 10 Aug 2019
ConfusionMatrix.PNG
This is the confusion matrix I can get. Yes, I need help to have to be two levels of labels, like in the image I would like to group the labels similar to the confusion matrix given in my question. I am not concerned with numbers and colours.
Sorry for not being specific and Thanks for your reply.
Could you help me please

Sign in to comment.

Accepted Answer

Kaashyap Pappu
Kaashyap Pappu on 16 Aug 2019
I have brought this issue to the notice of our developers. They will investigate the matter further.
For the time being, you could use xlswrite to write the confusion matrix to an Excel®Spreadsheet, along with the labels to generate the same in Excel®. You could then edit the sheet as you see fit.
Hope this helps.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!