Question
I've designed a fuzzy inference system in the MATLAB using fuzzy logic toolbox. My target dataset is comprised of 100 instances and this data set is of 21 different classes. Now, I want to calculate its ARP (Accuracy, Recall and Precision) for every class which means there will be 21 different confusion matrix with 21 different ARPs. I've seen 'plotconfusion' and 'confusionmat' functions of the MATLAB but didn't understand these function. Kindly guide me to create the confusion matrix for my system and how to calculate it in MATLAB.
Expert Answer
Neeta Dsouza
PhD Expert
Answered Aug 25, 2026
Use BOTH the help and doc commands on
confusion confusionmat plotconfusion roc plotroc
You can find additional classification examples by using BOTH the help and doc commands on
nndatasets
If this is not sufficient, search for each of these terms in BOTH NEWSGROUP and ANSWERS
If you still have problems, post your code with accompanying error statements
100% Run Guarantee
3-Hour Fast-Track Delivery
Need a Custom Version or Complete Simulation for This Problem?
Our 500+ PhD engineers build, debug, and optimize working MATLAB scripts and Simulink (.slx) models tailored to your exact assignment rubrics with zero plagiarism.
Tested on MATLAB R2024b / R2026a
Turnitin 0% Plagiarism Report
Free 7-Day Revisions Guarantee
Have a different question? Ask here
Related classification Questions & Solutions
Browse All →
Explore similar technical troubleshooting questions and verified MATLAB solutions:
Ready-to-Run MATLAB & Simulink Projects
Browse All Projects →